It's worth noting with an implementation like this that players with high ping lag will be able to briefly fly as the client thinks they can fly while the server takes a while to pick up on the fact someone started flying
@@KodySimpson Yeah for sure like scoreboard when you kill a player add 1 kill to the scoreboard , same at death if u death add 1 to death, with a coins like kills , deaths , coins or tokens that tokens when u kills people u got some like when u open /shop you can buy a stuff from that tokens or coins . hop you to that...
Great video. It reminds me of the old times when I was making plugins for our server nearly a decade ago :). Regarding the code, I would suggest removing the hashmap entry of a player when he leaves the server. Just to prevent potential memory leaks.
Hi, I just wanted to mention a big issue which has caused me issues before; make sure to remove the player from the HashMap on leave! otherwise you will have a memory leak as the player is not connected to the server but their player object is still referenced by your HashMap. You can also use a WeakHashMap which will uses a WeakReference for the player key and will not cause this issue as a WeakReference becomes null when all the other references are gone.
@@KodySimpson 1. You'd be very wrong, the api is 5x nicer. 2. The point is that all servers use paper nowadays, and since paper hard forked, soon enough spigot plugins won't work there anymore and everyone will be moving to paper anyways. Better future proof your videos.
@@KodySimpsonThere is not much point in my listing specific features, preferences exist but it is a well known fact that the development experience with paper is way better. For instance, the fact everything is component based, or paper plugins system having loaders, bootstrapping, Registery system, a bunch of new events and methods, more optimized methods and much more. I can't tell you specifically what you'd find better but those are just very small examples of what the paper api provides. And the fact that paper will break compatibility with spigot in the near future, also means you using spigot's api is essentially irrelevant. Besides, everyone uses paper, so why are you against using their api? Makes no sense to limit yourself on purpose. Can't forget the fact MiniMessage is builtin paper too. Making hover and clickable messages, with gradiants or whatever else easy to do.
I was actually working on a plugin that does exactly this but the issue was that enabling allowFlight causes the player to not take any fall damage, is there any way to get around this issue?
When you enable flight for a player in Survival Mode, it will automatically make it so you cannot take any fall damage. You can artificially enable fall damage by calculating the damage done to the player depending on the distance from the floor.
Hi kody, I have a question - could a hacker create triple jump by sending a packet to make them touch the ground right after hitting double jump (anything more might cause movement errors/rubberbanding)
thats why he used entity.isOnGround() instead of player.isOnGround() "Returns true if the entity is supported by a block. This value is a state updated by the server and is not recalculated unless the entity moves."
It's worth noting with an implementation like this that players with high ping lag will be able to briefly fly as the client thinks they can fly while the server takes a while to pick up on the fact someone started flying
We are finally back at plugins 😊 i love plugins
yessir!!!
Nice you're back at doing plugins tutorial
Yeah, back by popular demand
This is actually so fun to do. A new sub!
Thank you! More to come
we're so back!
yessir
Although I don't want to make a double jump plugin, I found this video useful
haha thanks
My fav series
:D thank you
holeee finaly Kody backs to plugin hop you create a coins scoreboard shop gui menu ....
Can you provide more details? Maybe I can do this
@@KodySimpson Yeah for sure like
scoreboard when you kill a player add 1 kill to the scoreboard , same at death if u death add 1 to death, with a coins like kills , deaths , coins or tokens
that tokens when u kills people u got some like when u open /shop you can buy a stuff from that tokens or coins . hop you to that...
hAPPY NEW YEAR!!!!!
Happy new year!
Great video. It reminds me of the old times when I was making plugins for our server nearly a decade ago :). Regarding the code, I would suggest removing the hashmap entry of a player when he leaves the server. Just to prevent potential memory leaks.
Great suggestion
I'm not even gonna watch it to comment I already know its a great video worth commenting
lmao thanks!
Hi, I just wanted to mention a big issue which has caused me issues before; make sure to remove the player from the HashMap on leave! otherwise you will have a memory leak as the player is not connected to the server but their player object is still referenced by your HashMap. You can also use a WeakHashMap which will uses a WeakReference for the player key and will not cause this issue as a WeakReference becomes null when all the other references are gone.
Very useful! Please make a video about the config reload command. Mine is working just partially.
Will look into it, thank you for the suggestion
PlayerInputEvent was added in 1.21.4 iirc. It can detect jump, sprint, any direction key too and sneak.
Added to spigot? Or just paper?
@@markloving11 Added to spigot then added to its fork, paper
awesome video, can i ask what theme your using right now and also do you prefer maven or gradle?
Maven for sure, i use the default dark theme
@ interested mine looks different I just love how the icons look on yours
oh the icons is Material Icons plugin
@ I appreciate it thanks
think i got an idea for what you could try, make a random loot drop plugin should't be hard and sounds kinda fun to mess with
thanks for the idea!
this is cool you can use if player is sprinting to 2x the velocity or if sneaking to lower deviding it by 2 idk did it for mine
I would suggest starting to do videos on the Paper API since it hard forked and is obviously the go to.
I understand it runs better than a spigot server but from what I've seen the API itself does not add much
@@KodySimpson 1. You'd be very wrong, the api is 5x nicer. 2. The point is that all servers use paper nowadays, and since paper hard forked, soon enough spigot plugins won't work there anymore and everyone will be moving to paper anyways. Better future proof your videos.
You have yet to tell me how the API itself is better though
@@KodySimpsonThere is not much point in my listing specific features, preferences exist but it is a well known fact that the development experience with paper is way better. For instance, the fact everything is component based, or paper plugins system having loaders, bootstrapping, Registery system, a bunch of new events and methods, more optimized methods and much more.
I can't tell you specifically what you'd find better but those are just very small examples of what the paper api provides.
And the fact that paper will break compatibility with spigot in the near future, also means you using spigot's api is essentially irrelevant.
Besides, everyone uses paper, so why are you against using their api? Makes no sense to limit yourself on purpose.
Can't forget the fact MiniMessage is builtin paper too. Making hover and clickable messages, with gradiants or whatever else easy to do.
luv u big boi
I aint big just plus sized! jk love u too thanks for watching
What keyboard are you using? It sounds good. 😆
WOBKEY Rainy 75 CNC Aluminum HMX/JWK/Cocoa Switches Triple-Mode Connectivity Mechanical Keyboard with Superior Acoustics, RGB/FR4/Silver SUS304/7000mAh/Cocoa Switch (Pro - White)
I was actually working on a plugin that does exactly this but the issue was that enabling allowFlight causes the player to not take any fall damage, is there any way to get around this issue?
How did u disable fall damage?
When you enable flight for a player in Survival Mode, it will automatically make it so you cannot take any fall damage. You can artificially enable fall damage by calculating the damage done to the player depending on the distance from the floor.
Hi kody, I have a question - could a hacker create triple jump by sending a packet to make them touch the ground right after hitting double jump (anything more might cause movement errors/rubberbanding)
thats why he used entity.isOnGround() instead of player.isOnGround()
"Returns true if the entity is supported by a block. This value is a state updated by the server and is not recalculated unless the entity moves."
Yes, you can send a packet that makes you touch the ground even when in midair. But, it would make a quadruple jump, not a triple jump.
Now make it a server side fabric mod so it won't break 90% of technical builds :)
(I'm joking. Good tutorial though)
Hello bro can you make a video that how can we use ai to create the plugin.
Yoo
yooooooooooooooooo
UwU daddy
AI thumbnail :(