Okay I've watched tons of videos and read tons of tutorials and I kinda get it but what I don't get it is how to make commands. Could some1 pls show me a video they've made or has taught them how to make their first plugin. I'm making a god mode plugin so I want a command /god on but I don't knw how to do that. I also want a cool down but again I don't knw how to do that. I don't want gos to hit ppl or hurt them but again I don't knw ow to do that. As u can see I'm frustrated cause I've been trying for hours by trying to figure it out. I've done all the simple things but I do not knw how to do the commands as I said. Thx a ton Rever Bump i really need to make this plugin EDIT by Moderator: merged posts, please use the edit button instead of double posting.
So if I write commands: GodMode Will that just make god mode. I'm not acting stupid because I knw it won't work but I need more of an explanation pls
It will register the command, you then need to code the command. You can have spaghetti there, but you then need to code that command to do what you want
I don't but this is a basic one here. Code: name: MyPluginName main: package.class description: This is a description of my plugin! version: 1.0 commands: test: description: This is a test command! usage: /test
Okay is it really that easy too cause I may be over looking this. I'm use to coding iPhone and iPad stuff. I also thought that u would write that but add way more code So this would be mine Code: name: GodeMode main: package.class description: godMode enables protection around drowning falling and lava! version: 1.0 commands: GodMode e: description: This will enable GodMode! usage: /godm e [/quote] Is that all Thx a ton
[/quote] Change it to Code: name: GodeMode main: Rever.godmode description: godmode enables protection around drowning falling and lava! version: 1.0 commands: godmode: description: This will enable GodMode! usage: /godmode Where it says 'main: ' it means like, the location of the class that 'extends JavaPlugin' So, if my class was in 'Rever/godmode.class' i put 'Rever.godmode'
Change it to Code: name: GodeMode main: Rever.godmode description: godmode enables protection around drowning falling and lava! version: 1.0 commands: godmode: description: This will enable GodMode! usage: /godmode Where it says 'main: ' it means like, the location of the class that 'extends JavaPlugin' So, if my class was in 'Rever/godmode.class' i put 'Rever.godmode'[/quote] O wow this seems really easy thx so much and is this all u need to do? Bump I'm sorry for bumping but something glitches when I tried to reply Change it to Code: name: GodeMode main: Rever.godmode description: godmode enables protection around drowning falling and lava! version: 1.0 commands: godmode: description: This will enable GodMode! usage: /godmode Where it says 'main: ' it means like, the location of the class that 'extends JavaPlugin' So, if my class was in 'Rever/godmode.class' i put 'Rever.godmode'[/quote] Bump read my post above Read my post above pls husky EDIT by Moderator: merged posts, please use the edit button instead of double posting.