#help-development
1 messages · Page 913 of 1
Y2k might be unalived when I say this however all he is saying is just use luckperms
Did you sign the CLA
I wanted to expose a #clone method in BlockState
it will be a few kb for a thousand players
Yeah, months ago I was accepted
wtf do you plan on storing? their whole life or smth
@flat olive
Its only a problem w mysql
Postgresql etc
W mongodb u can scale horizontally
So dw about that
It says something about using JUnit 5
How do I write a test for a minecraft server?
lol
ah I see
theres a dummy test server lib
so mongodb is suitable
I mean yeah
okay I plan on remaking luckperms thanks
Good luck
Alr then fork CB and clone CB. Then fork Bukkit and clone Bukkit add your api method in Bukkit run mvn install. Now you need to apply patches run build tools. Redirect applyPatches to decompile latest idk the windows command so you're on your own. Once you are done with that get adding.
I have given up trying to compete with lucko on any plugin genre he makes
dude is too talented
I reccomend you see a psychiatrist before the chronic depression sets in
What new things Will we be able to do with the nbt changes?
Don't bother with testing unless MD brings it up 90% of things can't be tested
Not much rly
I mean there are new tags
Nothing new besides breaking internals
There's tests? lol
making a basic luckperms wouldnt be hard right? its just concept of ranks and storing users and permissions within the ranks, along with a web application using react w nodejs linking up the database allowing you to edit every user in a web app, and making a gui in game to grant and remove ranks
my goal is to make a fully custom server, fully custom everything..
Yes for CB and Bukkit mostly used for registiees and commodore AFAIK
@spare mason the big thing is that loading them and validating them is done eagerly
I Heard about multishot bows, is It real?
instead of lazily
more complicated than it sounds
Hahabahahahahahahhaahahaha
That's just an enchantment for crossbows.
theres many many many layers to that
so its somewhat faster
But yes
They have their own tags, I believe enchantment glint was added also
What is glint?
Amongst many other “from now on” built in tags
Sparkly look after you enchant
Ayo, if you find out how to get a webserver ran through a plugin, please let me know.
ty so much
Deploy spring
Wasnt there a flag for that?
alright, whats complicated about luckperms that would be hard to replicate, throw it all at me and ill challenge myself into writing it up with mongodb
No
Just take a look at its features board
Alrighty, haven't used luck perms in years, my goal is to make a server fully custom coded
using a single plugin
doing pretty good so far
bad idea
Why? wouldn't it make the server run smoother?
no
Pretty sure JanTuck has done enough psych classes to help this person
one thing breaks, whole server breaks
Until something in the plugin crashes and locks the server up.
not to mention maintainability
dang you're right
It's better to separate systems.
💀
The problem is presumably your inexperience
if you were experienced u’d concern urself over many things, and it would take way too much time custom coding everything to ur likings as a subsequence
I'm more advanced in web development, moving to java from js (spigot) is kinda challenging trying to figure out how things work with minecraft
Which is why CabernetMC will be leaving the bukkit ecosystem!!!!
sounds like you're reinventring the wheel aswell
and by inexperience I mean things like, how to design your code, how to maintain it in the long run, how to make it safe from bugs etc
Java is harder than JavaScript
well, it can be
in the case of fully coding a custom plugin
I did the same thing with my first big server. Then realised my code was horrible and refactored 20k lines of code.
It prob is, at least when u start using concurrent classes from java, and other intricate mechanisms
Hard disagree have you seen how many frameworks there are. Not to mention language flavors it's taken them what 10 years to make the language usable. I'd argue java is easier you don't have 200 competing standards for 1 task 🥲
If its a private server it isnt a bad idea, if the plugin is public is a terrible idea
JavaScript is pretty hard
took me a good 4 months to learn everything but getting into frameworks such as angular and react was a whole new level
Math of strings...
Yeah the frameworks can be hard
but like
JS is just inconsistent
The language itself at core
Is bukkit a framework?
I wouldn't call that hard, just annoying
Man if only Javascript stayed out of the backend 💀
def
yeah, ig you could call it one
Node js is a deep swamp to never touch
JS front end is amazing, JS backend is hell on earth
React compiler hits different, doesnt it?
npm can go fuck itself.
can easily say JS is the best front-end framework lang to work with
so anyways what you're saying is, I should try and make all of my plugins separated that way if something breaks then not everything breaks?
Wow I wonder why it works well on the front end not like it was made for that or anything
didnt it only just come out
Yea
Just get good with css. :p
and don't reinvent the wheel
Whats ur end goal
What is the diference? Havent used a proper framework before
the more plugins and features you make, the more refactoring and upkeep you have to do
If its only pure custom for the sake of custom
CSS is Turing complete if you have to use js you just aren't good enough
Then it doesnt matter if u split ur jars up or not
my end goal is to fully develop the server with my own custom code, I dont mind refactoring and updating for bugs and everything I plan on having my server bug tested
a framework provides structure, a library is functions that can be used
to put it simply
There are certain advantages to separating the jars
Hypixel is fully custom isnt it?
not entirely
What's that
Bad ass benchmark too
like 90% but they still use some popular plugins
Independent redeployment
Are frameworks a bunch of abstract classes?
Stability & Maintainability
Well jars themselves dont rly provide that
i mean u have the java module platform system
but like
yeah IG you could say that, something like spring or bukkit is a framework
The second you look at what hypixel does as a benchmark for yourself is the second you've failed your pornwct :P
Its more just being able to at runtime deploy
whereas apache commons is a lbirary
Hypixel probably even has a custom server.jar
what does this do in the placeholder expansion?
100%
Ofc they do
most servers with >1k players have a custom jar
They're still on a modified 1.7.10
A classic one is, iirc, you call the library, but the framework calls you
Iirc
Returns values from the config.
So.. what do you prefer I do if I wanted to make everything fully custom, my own development
If you are going to do it, brush up on your code structure, test driven development and SOLID principles
make sure your code base is solid before growing it
Okay okay
You power through and cry see you in 10 years :P
If your foundations aren't good, you're gonna end up rewriting the whole thing
Wtf, doing a custom server.jar isnt like the most complicated thing?
Nms isn't that bad lol
forking spigot, not really
They run a modified fork of spigot
The stem has to be strong enough to support the branches right?
spot on
Probably of paper
Should I purchase a custom jar from builtbybit to keep the server lag-free?
Paper didn't exist yet but I appreciate the guess
So no not paper
Spigot
Can someone send the exact tutorial for placeholder api just to make a thing that returns a value based on the identifier
hypixel server jar is probably so far deviated from spigot
Depends. I can make one probably in like a 2-3 hours. Really what is needed is the protocol. How you implement everything else is up to you.
They may even have a custom compiler
I imagine they are going to really benefit from this new update with the transfer packets
their proxies are the biggest bottleneck
But like, why? What are the benefits in making a custom one
but moving all those systems over are another story
The wiki is the tutorial.
welp this is a whole new world for me but im sure I'll be able to do it 🤣
What are those?
I'm reading it and I don't get it
Try, fail and repeat until success :)
in 1.20.4 there will be packets to send players to different servers
effecitvely making bungeecord useless
no proxy required
There is stuff you may not need the server to be doing that always happens. So by making a custom jar you reduce this overhead in terms of memory and cpu cycles.
But is It better than bungeecord?
well no proxy will be needed, so yes
@ivory sleet will purchasing a custom server jar like from builtbybit or something be good for making the server lag free since all the memory will be going into one singular plugin?
proxies are a major bottleneck network bandwidth wise
Then 2b2t has 100% one
Ok not sure why that matters
Oh so they are integrated with the client?
No lmao most of those jars do like nothing on top of spigot if you're concerned about performance use paper
idk
If you're working with 1.8 there are specialized 1.8 forks that may be worth it
custom jars are only useful when you have a big playerbase and each bit of efficiency matters
with <1k players it's essentially useless
I'd use folia before a custom jar
You could spend all that money on a folia server and lag Will cease from existing
Folia?
If performance is what you are looking for then you need a completely custom jar built from the ground up. That means removing bukkit and mojangs code and redoing many things and removing anything that you dont need
Wasnt out there a jar that did that?
Basically this mad man rewrote large parts of mc to be completely Multithreaded
Pufferfish or something like that?
That's about it
Minestom
Pufferfish is a paper fork iirc
what does the method public String onRequest(OfflinePlayer player, String params) { do? what is params and what is player?
Notchian server is pure shit
Some jar to multithread that IS so good that It dissapeared the lag of 2b2t
Idk, plenty of groups have made their own to include myself. However most dont release these jars because enterprise level stuff is not something people are willing to give out for free
It's not gone but it's minimized
Folia is still not production ready iirc
So I don't even need to spend money on a custom jar, I don't even need to remake it.. somebody already made folia.. right where can I purchase a server?
Pretty far form it
What do one has to learn to do one?
Mojang is not in the business to give you enterprise level software for free neither is spigot
Just read wiki.vg
And implement the protocol
Networking and protocol
Ohhh networking, wasnt that like the Vietnam for coders?
I need to do this still might do it as a summer project for the funsies
I see we have a troll
Rewriting Mojangs code to make a server faster would be incredibly hard..
Its not
Been done
Not hard just time consuming
This
Minestom
I havent done nothing with that, if i learn It do i have to expect a good time or want to be dead
to be honest the only thing I really wanted to buy a custom jar for was the /tps plugin (because it looks really nice and feels nice) and lag free tnt explosions 🤣
Correct me if im wrong but we have 0 mojang documentation for packets
I mean for me it'd be hard as I don't have an inate grasp on voxek rendering and networking etc but I'd wager it's probably not too crazy once yoj look into that stuff
Correct wiki.vg ftw
Most jars for sell for custom server are scams. Most devs who woulf make something like this dont go around selling jars rather they sell and market their services
is there anything thats not a scam?
However it is not cheap to have someone make you a custom server
spigot, paper
Well, you have nms and thats a jar
These known brands
theres no way
Wtf
thats more than my truck
People making those are making bank
ok wait is this all you need for a placeholder expansion?
would folia be better than a custom jar or nah
Folia is good if players are spread out
Hypixel custom jar would be expensive as hell
Well the last time i made a custom network i made something like $10k. So $15k is about right for today
I'm making a minigame network for a spanish studio and I've made like 2.5k last couple weeks
How many months do It even took you to do It?
Depends. But at minimum 3 months the one i did took 6 months because it involved automated vms
automated vms?
I dont know what it is but It sounds scary
basically on demand load balancing type deal
if you need more servers it gives you more servers
Virtual machines
It's also nice for deploying updates n shi
vms in a custom jar???
No
bro 💀
for example at work we just run a game per world
And always have 5 games for each template in the "joinable" state at any given time
But at some point the servers are gonna get overloaded
You guys could even make a branch with all that knowledge
I make a living out of this
Probably but some of us dont have that interest
What do you guys do for a living though?
minecraft poogin
how many racks yall making a year
College 
uH
I am a tire technician and i mount and dismount semi tires on trucks and trailers
idk how much I made last year but my goal for this year is 50k
How many years of experience do you guys even have?
8
negative racks indeed
Wow thats nice
From my work i make anywhere from 60k to 80k a year
Wtf
Nah I'm still In HS just full time dual credit which means it's free for me atm
From my investments if i pulled them all. Mil plus
At least in my country that is being a rich man
I gave oliver 2 months so he good for a while lol
Ah nice at least that'll give ya a few credits off the final bill
A mil is a good amount in the US too
I bought y2k couple nights ago
my goal was to be like my brother, hes been in web development for a few years and hes making 200,000/year but now im starting to wonder, do I even like web development? I sort of want to branch off into a new experience instead of me having 6 years of web development experience all bc he got me started
My parents have to pay for the rest since I can't qualify for federal loans
Can't?
Well that is a low estimate. I dont really have an exact amount just know currently over a mil
He's
Do you guys think that Minecraft Will be still a good market in the Next years?
Yes
odd
Never knew loans for school got denied
I want to try to make a living out of this
Oh wait you can't even apply for one
Uhm well we are somewhat well off ig I don't like to admit that but it's true
This is the thing. Especially with web development. You have to have have some kind of want for it
I can't even apply for one
as long as you live in a poor country you'll be fine but the thing is
the people making livings out of minecraft are already established devs
However you can still learn it though. I started from web development
Yeah exactly.. ive lost interest in it
I wanted to do cybersecurity, but im unsure of what I still want to do
Well I suppose it only matters if you don't make something of that education
I mostly want to learn what people likes to then try to make a game
There is a lot of stuff you have to learn for this. To include boring stuff and stuff you just might not get lmao
I'm planning to do compsci with an emphasis in embedded systems
Good money and different from my hobby
I'm actually 18 about to go into college. Lost at words for what to do in my life, I find java development crappy (too many errors every second but easily refactorable and fixable) but its fun when you make something out of it and I wonder if I can make a living off of this within this community and as a java developer alone
I'm 18 too ¯_(ツ)_/¯
However know this, if you just want a business you dont need to know anything. You can hire people to take care of that
when this industry eventually dies down I'll probably get a network / basic IT job and just chill for a while
Well it's a degree and something that'll take you places... you just have to control the steering wheel man
Wtf programming since 10, this dude has future
programming since 6*
Yea
the 8 years are professional experience
I been programming since i was 10
I mean if u find it fun, continue Balance
Ahhh my end goal is management I always feel much more comfortable managing people even though I can code pretty well
I started block coding at like 11
I couldn't consider 6yo dirt eater code experience
then java at 13
When i was 6 there was only them machintoshes lmao
I despised block code since day 1
I never used it before
@wet breach I swear i've talked to you before somewhere
I was block coding cuz I didn't even know an ide was a thing
I started by making shitty c# bots for a flash game
Is Minecraft better for solo devs or groups of devs?
it depends
A lot of groups of devs are Rising in the spanish community
I find having a team with experience in multiple niches more beneficial than a solo titan dev
I'm still young so really doesn't matter. I could've probably graduated college by now but I somewhat am glad my parents encouraged me to take it slow
Call centers use java a lot and there is few other places too. Sometimes it can be crappy but it is no different then the other languages just you have different specific crap for each
One made an event where even dream participated
Well it's not like I'm older, I'm only 17 man
:P fair
I work for a spanish studio, I don't need to be spanish to work there
Yeah true, I applied for a remote job today for RPG Programming, the language is very old
Most definitely even if some of them dont do much because brain storming solutions and ideas with a group like this is extremely effective
Yeah
For example my homie's more of a code monkey
I kinda despise making menus n shit
and custom items
I've been enjoying making like
highly customizable minigames & infrastructure lately
Not really but I refer to Spanish people, latam
Yeah my entire team is spanish / latam
Newest hypixel minigame dev???
no im independent for now
soy hablo espanol, solo un poco.. 🤷♂️
when do you update your minigame guide thingy
Haha just saying that cuz of choco
when I have the time
still learning
wheres the original anyway
Are streamers our Friends or our enemies?
I see
And the current pace at work is like
releasing 2 games a week
and a major system in between game releases
So for example
Game, Party system, Game, Friends system, Game, Guilds system, Game, Pets?
idfk
to be honest they make lots of income and have the power to steal all of our playerbases or our potential customers for selling plugins off of stores so.. in other words yes
How many team members?
Since you dont know what to do yet. I highly suggest taking some finance courses. Jobs especially like mine are not going to make you rich if that is your goal. But learning finance related things and how to invest in stuff or what you can or should invest into will benefit you now because 2 decades from now it will make you money. And not just talking stocks best to stay away from stocks lol.
1 dev and like 15 team members
Also learn business too
Jeez you're single dev with all that work load?
Yeah
Sabes de eufonía studio?
I've been doing it for nearly 3 weeks
sleeping every other day
But we already have like 2 games, cosmetics n shi
sunday's update involves releasing a new game, party & friends menus (rn it's really scuffed with commands), localizing the whole network and redoing all VFX and sounds
I am on Mac
vfx sounds like a bitch
yeah issa bitch
However while i could technically retire i suppose right now, you need a job where you have a steady stream of income to make all the other investments work. I have the job i do because its easy and i am guaranteed 40 hours a week and i dont always work 40 hours lol.
Do you guys think that players should download stuff?
sure buddy
Dave Ramsey speech 🤣 No but you are right man, I'm going to take a business major in college soon and take computer science as a second, to be honest id love to own a business without wanting to get full depth into a programming job because a business typically can scale and earn way more than a salary for a developer. However, it's also just as hard as businesses fail, code fails but you can always reinovate just as you can a business. My thought process so far is that, technology is the future, so I find it best to focus my efforts near online businesses, or even programming..
Only reason I said that is because there is a show I really like on yt called "the big lez show" and it was all animated on ms paint
what do you mean
s3 really really made me question if it was ms paint or not
Like needing a txp or something like that
sure if it's needed
resource packs can really make a game stand out
you can do a lot with them if you know how to wrestle with them.
But why
had to make a blocks.json file to let it know to read folders
atlas likely
yuh
sort of a necessary evil
We already can even make models out of block displays
helps a ton with loading times
Well i learned finance stuff out of a need. My family used to be poor. Then one day i decided i didnt want to be poor anymore. So i set out to learn how to do just that. Now my family owns 23 acres of land in cali and we are looking to buy more property in Texas.
I have an easy job with an employer that cares about its employees and have all kinds benefits and i have money when i need it
I am basically set. But it took me like 10 years to accomplish all this
You have that ability just got to learn to do it
I'll put my 2 cents in but my father has worked in finance for the past 25 years and every job he has held except for a stock broker, he has absolutely hated. I assume it's better when you're not at a manager level but when it comes to dealing with these people alot of them genuinely need their hand held through the whole process. It becomes a pain after a long time of dealing with it I've heard :p.
True, I bet
And despite hating finance i am sure they recommend still learning it
Even when you're not needing to manage people, the workload that comes down for departments in most banks is abysmal...
Oh of course
It's a needed knowledge base for sure
Finance and debt is what makes the world work
When do i learn that on high school ._.
And the better you know it, the better you can exploit it
Why exclude yourself from the world you know?
Exactly this
There is all kind of potential and free money out that
I think most high schools enforce a basic economics class around 11'th-12'th
So that property i have in cali. I convinced the state the give me a grant to remove trees
It cost me nothing to beutify the property
The state paid for it
Oh yeah, im learning finance in money skills in 12th rn
have been the whole year
an entire course of dave ramsey
property value + 15-30k - nothing because frost is cool
its very... not too too helpful
if im going to be honest
"get into stocks" " save $500 emergency funds"
"invest into stocks now!!"
Actually removing some trees and the ground brush raised the value by about $100k
How big is your property??
oh wait
cali
23acres
We bought the propert for like 380k
Right now property value from the adjuster is now at like 600k and some odd change
wow
380k for 23 acres?
We have had the property for like 5 years now
value sure did go up
am I reading that right
investing into reselling land might make you rich in years 😮
Yeah but we are never selling it at least not anytime soon
Sounds like that property was bought 40 years ago
the only real way of a shortcut in life ive found is "arbitrage"
The funny part is we own the mineral rights and part of getting that grant we had to test the soil quality
The quality is 100/100 in cali
I could literally sell dirt
sitting on a gold dirt mine
How is it only estimated at 600k?
a way to make a lot of money is buy land that has oil deep within it and start farming the oil and selling it to gas stations
Because we only have a single house and its a manufactured home we modified. So the rest of the value is based on the land itself
So the more things i do to make the area look good, paving the road we own etc
In a lot of countries you don't own teh resources under your land.
Ah damn... just build 60 more houses then bam: 14 million dollar property
or only to some depth
Increases its value. However the adjuster has limits on high each year to adjust value
So the doubling of value took 5 years to happen
It didnt happen in a single year
And also why baren land is more valuable
That's extremely good profit
Baren land gives you more freedom
And you start from a lower value
From the governments perspective
So if the value is low and the seller sells low
You can make money in 5-10years
Now the other problem of the equation though is location and who would want to buy it
Maybe if you put a good house on it lol
Cant just buy property in the middle of no where with little to no services nearby and expect someone wanting to buy that property for a high value lol
I'm 2/3 the way done with my plugin
Nicer house is a nicer house man
after only 2 days with absolutely zilch prior plugin experience. Is that good time?
Yeah but you can take loans on the property to build a house yourself
So better to look for some empty lot
Closer to civilization lmao
You have 23 acres to do so
My property ironically is in the mountains
Hey, sorry to be that guy, but do you mind moving to a different channel?
Its elevation is 3,500ft
well I think on that note I'll just go to bed
Lol
Anyways good discussion frost haha
What kind of plugin is it. What does it do
would you say this would be a good spigot fork? https://builtbybit.com/resources/imanityspigot3-regular.10770/?ref=discover
I have yet to see a "Good" Spigot fork.
Probably not
"Danger Level" plugin
you know where any good spigot forks are that would consist of allowing 1.20.4 to join?
is spigot not enough for you
Why do you want a fork?
fork doesn't automatically mean good...
You get (configurable) 2 base danger, when you kill a player you get (configurable) 50% of their danger, if you kill a player with less then (configurable) 25% of your danger, you get punished and receive (configurable) negative effects. Every (configurable) 300 seconds, the top (configurable) 3 players with the highest danger coordinates get sent in chat.
Its also not a good idea asking for a recomended fork IN the Spigot discord.
All of the players who join the server's danger is saved to a json file containing their UUID and their danger level.
this is what the classpath looks like
I see that UnusedCode
Certainly. I am all for encouraging people to learn and make money. Everyone has the ability. You just just have to want it and willing to put work in for it. There is no such thing as easy money. Its taken me 15 years to build what i have and going. I been working since i was 11.
For people that is not in the US this is basically impossible or 30+ years Minimum to do
Depends where you are at i suppose but for the most part you can still make money
You cant if you have a 300 dólar salary
The problem is not learning or lack of people to teach
I started out making barely $300 a week
I am talking about 300 dolars a month
If you live in a low income country your cost of living is also proportional. You are at an advantage when it comes to e-eCommerce.
That is what most people here gain
Sure but my salary was nothing at the time when i was in cali
Not really
Food here isnt cheap
Of course you are. It costs you less to live (day to day), where you can still charge teh same as everyone around the world for your services.
Meat mostly is expensive
I know
You need to learn what meals you can make that last
And i do know whats it like to not have food. My diet was top ramen and potatoes
For quite a bit of time
My diet (at 21) was stolen milk, bread and eggs.
I started from being poor and having nothing. And elgar is right. Having nothing is an advantage
You are not tied to a place or anything
Also you cant go lower then having nothing lol can only go up from there
What you have to learn is how to effectively manage and stretch the money you earn. It will take time
NO fast food. No going out with friends. Money on essentials only. First few years will pay off.
Well, you can go lower
but not as much
the stakes aren't as high as you have less to lose
But as long as you work hard to getting better pay or moving to a new area. It is only temporary for the suck
Work hard. Save every penny, and don;t go for get rich quick schemes.
Does the nbt tag change allows to directly modify damage from weapons?
weapon damage is not in NBT, only bonuses/multipliers
From the api i believe have to modify attributes. If using nms yeah can just directly modify nbt
Or is there an attribute thing in nms?
Then what is the way to do a weapon with custom damage?
As i said. From the api you use atteibutes
I added the method to BlockState
declaration: package: org.bukkit.inventory.meta, interface: ItemMeta
Both in Bukkit and CraftBukkit
How can I test it myself if it works?
How do I compile this CraftBukkit?
Hit compile?
Package?
You can find information about contributing to Spigot at the following links:
https://www.spigotmc.org/wiki/cla/
https://www.spigotmc.org/wiki/guide-contributing-to-spigot/
https://hub.spigotmc.org/stash/projects/SPIGOT/repos/craftbukkit/browse/README.md
https://hub.spigotmc.org/stash/projects/SPIGOT/repos/craftbukkit/browse/CONTRIBUTING.md
Well you dont need to make patches until its ready
Second link
But you can compile what you have for youself
The patches are needed because that is what is used to officially distribute changes
I mean
For everyone else and submitting prs
It already has the stuff I did add, I just wanna check myself if it works
Yeah build bukkit, then cb
ok
You need to use install goal for bukkit
When you mean build, it's maven package right?
I did so already
Cb you can use package
If its erroring probably need to refresh or clear caches
I typically dont have this problem on netbeans lol
Except on rare occasion refreshing maven on a super large project
It might be inherited from somewhere? Not sure what it is you are doing lol
Or you might need to include a class from the minecraft jar
Have you tried restarting ide? Lol make sure to save first
I did
I downloaded Bukkit, then CraftBukkit
Then idk. As i said i dont typically have the problem you do right now
Then I downloaded latest 1.20.4 build in a separate folder
Then I added BlockState#copy in Bukkit
Then the implementation in CraftBlockState in CraftBukkit
That's all I did
Nothing less or more
Yeah i get that, just it seems its your ide that is the problem. The source you get from BT is compilable
I manually compile all the time
How can I add an NBT tag to an itemstack?
Is not it something because of remapped mojang?
Or decompiling stuff?
I am really lost on this
Dont think remapped would be the issue but i guess worth looking into
Cause that could be possible
?contribute
You can find information about contributing to Spigot at the following links:
https://www.spigotmc.org/wiki/cla/
https://www.spigotmc.org/wiki/guide-contributing-to-spigot/
https://hub.spigotmc.org/stash/projects/SPIGOT/repos/craftbukkit/browse/README.md
https://hub.spigotmc.org/stash/projects/SPIGOT/repos/craftbukkit/browse/CONTRIBUTING.md
will ItemMeta ever be null on an item?
Air
How can I get my PR Id?
Create the pr and update it after
How can I make the player drop an item in their inventory?
Btw, what is the use of using checkArgument instead of having an if-check?
I guess to send a errormessage if conditons are not met
Instead of having 4 lines he uses 1
hey
whats the uh color symbol that gets changed from & to ...? I don't know how to type it
§
thanks
is paypal the only wya to pay for a premium plugin?
I just started using github in intellij idea and i created a repository using the VCS function but when i select push this appears. Also when i am creating the repository it isnt appearing in the github website
Image
for future reference, it is called a section symbol
in case you need to search for it again, it is also 0021 for alt code on windows
yes
sweet
well I guess not, as you could technically work something out with the author
and the author manually add you after that
that makes my life a million times easier
but you wouldn't have the same protections though
Yeah, I'm not selling, want to make a verification system
thanks frosted elf!
frosted elf 🧊 🧝
define the remote as the github repo link
it created a local repo
when you create reposity in intellij it creates local reposity its same as typing git init, u can google how to add repo to github from local
Thanks
?contribute
You can find information about contributing to Spigot at the following links:
https://www.spigotmc.org/wiki/cla/
https://www.spigotmc.org/wiki/guide-contributing-to-spigot/
https://hub.spigotmc.org/stash/projects/SPIGOT/repos/craftbukkit/browse/README.md
https://hub.spigotmc.org/stash/projects/SPIGOT/repos/craftbukkit/browse/CONTRIBUTING.md
Is there any way to discriminate a server through some sort of footprint? I want an ID of some sort which cannot be editted by the server owner and is unique to each machine
Ig i could use mac?
MAC can be changed
Like mac spoofing?
yeah that shouldn't be an issue
I think it's my only option at making some sort of footprint for a server
spigot used to have a server id in the api but it's gone
What are you doing btw?
🥲
it was deprecated in 1.13 and removed in 1.14
I does sound like it’d have some integrity issues
But yea
tbf it was just a string in server.properties
so to recreate that, just throw UUID.randomUuid() into a file if not exists, or read the existing file, and you have the same effect
yeah need something that cant be changed by user
im gonna do a server ID + public ip
so machine locked
you can spoof a mac address but you can't change the hardware mac unless you create the hardware yourself
Yes, but that doesnt matter if the software gets fooled by spoofing right
it depends
hardware is able to identify when a mac is spoofed
but, macs are not important though
they are only necessary to communicate to the next device and nothing more
Yeah
not that that matters much, your point of failure here isn't going to be someone spoofing their mac addresss
they just decompile the plugin and fuck around in there
If they're going to spoof the mac, they can decompile the plugin atp
they've earned it
not sure how susceptible we’re to mac spoofing, like to what degree software and hardware implements mac filtering
Yeah, as Long as you can change the software you cant really do a solid verification
well macs are not used for verification anyways
why's that the case?
is it a bad idea?
not really sure of any other approaches i could use
because first off there is no guarantee any two hardwares have unique macs, thus there is backup of spoofing the hardware mac in such instances. Mac address are for the purpose of identifying network devices on the network before they have been assigned an address
otherwise how else would you communicate with such things
once a packet moves beyond one device, the previous device is forgotten about including the mac
its not preserved
What are you trying to verify?
Just trying out a proof of concept, making an api to keep track of whether a server has a valid premium plugin license
I will host a validation server which holds all copies of licenses, and whether a server has the valid license to run the plugin
Maybe You could use asymmetric keys Like its used for ssh verification
But keep in mind that as long as the plugin logic is inside the jar, there will always be a way to bypass the verification
I want the client side to be opensource so can't have any keys
yeah, atp my philosphy is if they are decompiling the plugin or spoofing mac, they are gonna get verification either way
this is just to stop things like random people sharing plugin jars
not so much people with more knowledge
My idea is send the plugin's token + server footprint/id to the verification server, which then matches to db and returns accordingly
then on my api server side the plugin user and keep track of their licenses, add and remove servers. and plugin devs can add their plugins, set max amount of servers it can be used on, etc etc
Pretty sure Asymmetric keys would do the thing
Funny enough i learnt about that in my bach last year, and have completely forgot how they work
time to do some homework again
then sign the jar
and check for integrity
Whats that?
I want this to be a public api
ironically, the JDK alerts users when a signed jar was tampered with
jar signing works, but each dev has to implement it on their own accord
if its an api I don't see the issue you are having
My approach uses like 3 lines on the plugin side, and everything will be trackable through the ui for devs
my issue is trying to make a footprint for each unique server that can't be tampered with
right now it looks like mac addr is my only way
or possibly asym keys
signing .jars also wouldnt work with paid plugins on spigotmc
I mean if you share the key its still possible to copy right
thats why i want a unique id for each server
that can't be changed
if I use a key, there a posibility of copying it, if it's a footprint, that inherently cant be shared
Who says you cant share the id
well It's not stored anywhere if it's a footprint
I wanna stress the word footprint and not id
Yeah but you can still modify Everything to bypass
if it's a combination of things like mac, pub ip and some other shit then they surely can't have the same between two machines
at that point they would have the know how to decompile the plugin and remove the api code anyway
Just modify the API request lol
so I feel theres no point trying to avoid that
I mean thats not really difficult to do
the average server owner doesn't know how to do that
boolean hasMending = inventory.getItemInMainHand().containsEnchantment(Enchantment.MENDING);
player.giveExp(event.getExpToDrop(), hasMending);
Is the code wrong? When an item has a mending enchantment, its durability does not increase
Then they dont know how to use google
don't underestimate the stupidity of the average server owner. there's a reason why all my plugins show this screen when double clicking the .jar
you would be surprised
Right
scroll through #help-server for a minute and my point is proven LOL
thats smart lol
nice what you making?
this
nice, making it for public use?
If it doesn't prove to be logistically stupid, sure
How you wanna whitelist a id consisting of MAC and IP for your API btw ? @drowsy helm
It's more of a portfolio project to fuck around with my server
thats some hard criteria
haven't got to the point yet
was just usin the noggin so far
@drowsy helm https://github.com/oshi/oshi/blob/master/oshi-demo/src/main/java/oshi/demo/ComputerID.java
I just randomly found this while looking through oshi
(which is included in spigot btw)
Can i kiss u alex
couldnt you just: get the server ip, throw it through a scramble algorithm thingy, store it in a database and use that?
ofc this "ComputerID" class is not included, but all the things it uses to generate the ID should be part of spigot's included version of oshi
but be quick, my bf comes home in a few minutes 
I still dont get how you wanna verify something of which you dont know that it exists
Or do you ask the server owner to send you their server id so you can add it to your api Server
yeah it will point them to my website, which they just whack a code into
and boom
verified
then next load server asks api server if its verified, if it is, do not disabled plugin
What happens if they have a dev server and a live server? The issue with this kinda thing is in theory it's sound but when put into practice there is just too many edge cases
And how do you determine who can perform this action?
they can add their individual servers on the ui
plugin dev can chose how many servers can be used per license
So every time they hire a dev or a dev wants to work on it they have to add a server?
hmm
Servers stealing the plugin will just redirect your DNS or hack the jar
Which means each dev will have their digital footprint documented? I don't know but that's a privacy policy nightmare imo
I thought this up while eating my dinner at work, cut some slack LOL
thats how i get most my ideas, while eating
still gonna give it a crack for fun
thats hwo you learn
with "dinner", do you mean the spider you killed earlier?
be sure you are not just sending some OK response to their authentication
ccorrect, i fried it up
lol
fancy :3
imo it'd be better to hand out license keys and then just detect if multiple servers with > 30 players are using it.
privacy policy for what?
yeah not sure how ill handle that yet
Storing digital footprints. Since you'd be actively storing data about a user of your software
If you give the same response they just host a fake web server and respond
yeah atp, they deserve the plugin
Not to mention that everyone who uses the API would also have to do the same
depends what is stored really and which country laws you are bound to
i don't think theres any measures you can realistically do with a spigot plugin to fully prevent it
if in the US, you don't need a privacy policy unless you collect PII
I want to try and make it as easy as possible for all parties involved
digital footprint does not count as PII
unless it contains stuff that is considered such things of course
All i would have is server ip's, and probs spigot 2FA
IP's in teh EU are classed as personal info 😦
what about FQDN's?
Would a disclaimer saying that I'm storing ip's wave that? not really sure how it works legally
weirdly even though IP's can be reassigned at will
no clue
FQDNs are public domain so i dont think so
then use those
if you have to follow the EU rules, basically you just have to give notice that you do such things
crack
I just know there were some stupid judgements classing IP as personal (but not identifying) info.
for legal reasons thats a joke
this is what I was thinking
IPs are not "personal info" but "personally identifiable information"
EU needs putting down.
they go to the link, verify server then never have to think about it again
realistically can't identify someone with an ip address alone
thats true
yes, the english term is misleading. the german word would translate to "data related to identifying persons"
even then
still couldn't identify someone with an ip
how would you know that one ip belongs to someone and that it didn't get reassigned to someone else?
The only way you can identify a person with an IP is if you asked the ISP in which they won't hand that out to non law enforcement agencies I'd assume
well you also can't identify someone with their physical address. still it's obviously related to identifying a person
Even ISP's don't really know either
well.... You can
atleast in the US its pretty damn easy too
looks nice btw
how? there's like 12 people living at my address
the only way an ISP can know who had a particular IP at a given time is you have to be specific in your request for day and time
sure if you live in an apartment?
for a house like mine just go pull some government documents
grab the most recent one wallah
this can't be done with an IP
even if there's only 2 people living in that house, you cannot 100% identify who exactly is meant if you only have the address
in the US you absolutely can and it depends what info you are looking for. Addresses in the US are not private information
never have been and never will be
if I want to know who owns a lot two blocks away, I can just look that up
yeah well but they're here, that's all I'm saying. I didnt make these laws or decisions
My mother definitely isn't the one searching for big booty at 12am
if I want to know who lives two doors away, I can also look that up too
what you up too lmao
spigot related research
good thing it was your idea
Of course someone will then figure out a way to break the core logic and then all the plugins with this DRM will be null and void.
This is gonna be a nice profile selection ^^
holy mother of god how did you manage that that's awesome
Someone stop this man
no but seriously how does that work

Display entities :p
^
oh yeah i forgot about those
Also smile is just good coder
Same
Pretty much yeah
holy
This image was in reference to "hopes and dreams"
The name of the soundtrack playing when you fight this dude Asriel Dreemurr in Undertale
Ofc this isn't minecraft lol
i dont play undertale
Kk
damn that looks cool man
Undertale is goated
Ive been holding off on deltarune cos i kinda wanna just experience the full game at once and inject it into my veins
Dunno if it can live up to undertale's hype tho
It doesn't but it's not trying to be
If you're using the API you're probably already accomplishing that for the most part
My public plugins don't need updates to support new versions when they're released :p
Start by writing your plugin for the lowest version you want to support
then depending on what version the server is running you can load other classes and listeners
I need a Minecraft Plugin Developer. please DM (german if possible)
why german
bc i am german
?services
If you wish to request or offer development/art/building/administration services, please do so at https://www.spigotmc.org/forums/services-recruitment-v2.54/
can u explain it
If you need explaining then you're probably already fine :p
If any of your imports contain net.minecraft or org.bukkit.craftbukkit, you're using version-dependent code. Otherwise you're in the clear
okay so my plugins can work normally in other versions also right??
If the version is newer yes
WOW this is aweasome
Is there any packet, that would be able to move player from one position to another smoothly with walk animation played?
wiki.vg told me those are a thing https://wiki.vg/Protocol#Set_Player_Position
thanks I will take a look at it
Hi , if i want sell minecraft plugin with paypal , can i withdraw from spigot every time that i want ?
it directly goes to your paypal
any idea at all why this gradle script completely refuses to include my code in the jar?? i'm going insane (running gradle build)
https://paste.md-5.net/nebuqamolu.makefile
the resulting jar has 0 of my classes
so do you mean i can't disable * directly ?
what
wdym? whenever someone buys your plugin on spigotmc, then the money goes straight to your paypal
gradle init migrated this from a pom btw maybe that' s the culprit somehow
i deleted all traces of maven and regenned .idea
still does not help
remove this
are you using kotlin or java?
but maybe i don't want goes directly to my paypal , maybe i want after a time withdraw the money
you cant, spigot doesnt ever see the money
the selling is between you and the buyer not spigot and the buyer
where's the kotlin plugin?
yeah 1 sec i'm compiling with kotlin plugin rn
so is there a way for my target ?
no
like use another website or resource ?
you can make it go directly
to mine
:)
i thought you were down for this still
im an orphane, its not funny
i will steal you
How can I completly Invisible the players for one player?
Any minecraft programmer in here looking for work let me know!
?services
If you wish to request or offer development/art/building/administration services, please do so at https://www.spigotmc.org/forums/services-recruitment-v2.54/
?gui
?services
If you wish to request or offer development/art/building/administration services, please do so at https://www.spigotmc.org/forums/services-recruitment-v2.54/
how can i make the player drop an item in their inventory
Kind of have to fake it. You can
- Remove the item in their current slot
- Drop the item in the world and give it some velocity in the direction of the player
- Play the hand swing animation
How do you think Minecraft drops items? :p
To be certain, if the item doesn't get removed, don't drop the item
Does that exist? lol
yes but i need to drop their armor
please
Looking over NMS's implementation, yes, this is pretty much what it does
I see a World#addEntity() call, a swing(main hand) call, and a setItemInHand() call
ok sounds good then
Man i hate my CS teacher for making us use (Math.random() * 50) + 10 instead of just new Random().nextInt(50);
Well, keep an instance of random somewhere because new Random() isn't necessarily a cheap operation
That works :p
Yeah, it's just getting you a double each time is all
yea
our programs are max like 60 lines
lazily initialized as the classloader loads that inner class
