really love this manager. this inspired me to make my own version of it in which i added some cool features and now i use it in almost all of my plugins and its so easy to use and to understand. still one of my favorite coding channels to date. hope you dont mind that i took inspiration? i can show you if you want and then you can judge
@AchyMake2 жыл бұрын
awesome you taking you're time making these videos, helped me alot to make some fun plugins
@dylanroberts62174 жыл бұрын
Something I thought of was to use a HashMap for a juicy O(1) time complexity. The String just stores the subcommand so you can use hashmap.get("KEY") to check if it's null or not, and then have access to the SubCommand object. :)
@SanoKei4 жыл бұрын
Thinking the same thing, glad you typed it out!
@jaime72954 жыл бұрын
Wow so much easier and cleaner than codesource's video xd
@nubdotdev4 жыл бұрын
You should make SubCommand an interface, or actually implement the getters
@brendanbutters75885 жыл бұрын
Thx this will be helpful! Any plans on doing a vid regarding tab competition?
@KodySimpson5 жыл бұрын
Could you maybe give me an example? Or if you could show me a plugin that has this feature
@brendanbutters75885 жыл бұрын
Kody Simpson off the top of my head LuckPerms I believe has this feature where you can click tab to cycle/complete cmd args and I think essentials has it for some cmds like /home or /warp where you can cycle through the warps or homes.
@KodySimpson5 жыл бұрын
@@brendanbutters7588 Interesting! Thanks, I'll take a look
@Braekpo1nt3 жыл бұрын
Super helpful, thank you!
@KodySimpson3 жыл бұрын
Glad it was helpful!
@Bl0xxy Жыл бұрын
How do I make a SubCommand to a SubCommand?
@DoDisturbedTv4 жыл бұрын
Is it possible to do something like this for multiple commands that may not necessarily need sub commands? Or would i need to make a class similar to the commandmanager multiple times. A plugin I'm working on is getting very messy with all my commands being in one class. Probally over thinking this but it would be helpful if anyone can point me the right direction.
@perosinalmc71433 жыл бұрын
can u even have two different commands in one class??? how do u…nvm
@scyye-gaming2 жыл бұрын
@@perosinalmc7143 switch-case blocks on the command ran
@Alexxxychep5 ай бұрын
@@scyye-gamingpractically no oop
@yayer_273 жыл бұрын
that's so cool
@THBeatZz4 жыл бұрын
whats the song name playing in the intro kody?
@KodySimpson4 жыл бұрын
No idea
@infini6673 жыл бұрын
darude - sandstorm
@tweetyguy7347 Жыл бұрын
Bro thought he was coding in c++ for a second 13:25
@KodySimpson Жыл бұрын
lol
@delected5 жыл бұрын
damn ty
@dominocoding5 жыл бұрын
I suggest telling what does the topic mean, like in this video, there are some beginners don't even know what does sub-command mean, so I suggest saying what does the thing you're talking about and making a Toturial about mean and what does it benefit and help us in. On the first of the video.
@KodySimpson5 жыл бұрын
I do explain subcommands in the beginning of the video, but this is episode 52, so I do expect a level of understanding at this level. Thank you for the input
@9kmusic2015 жыл бұрын
He did explain what sub-command is, and if you are a beginner/somebody else he/she should watch from episode 1 as kody metioned
@dominocoding5 жыл бұрын
@@9kmusic201 so sub-command is the name of the normal spigot plugin? Or something else?
@9kmusic2015 жыл бұрын
iiH7oussaM_ Gaming sub command is what comes after the command for example /spawn diamond - /spawn is the command and diamond is the sub command
@dominocoding5 жыл бұрын
@@9kmusic201 what's the video that contains the explanation of it?
@ijustleyxo6092 жыл бұрын
I suggest just passing on the CommandSender, Command, String label, and args[] directly from the parent command...