Hey guys, I tried to make a plugin, but I kept failing. I want to have a sample codes for commands. I would like to make sure at plugin.yml, this is right: name: RalphCraft author: PianoRalph04 api: [3.0.0-ALPHA2] version: 1.0 main: RalphCool/1stpl command: ralphcpe: description: PR04's 1st cmd usage: /ralphcpe permissions: ralph.cmd.ralphcpe: default: true Tell me if there is something wrong, and also, show me atleast a sample. Thank you. I need some sample for commands. I made this plugin for test. and to make sure if it works and the next time I make plugins.
Spacing is important in YAML Code: name: RalphCraft author: PianoRalph04 api: [3.0.0-ALPHA2] version: 1.0 main: RalphCool\1stpl commands: ralphcpe: description: PR04's 1st cmd usage: /ralphcpe permissions: ralph.cmd.ralphcpe: default: true
Do not forget, slashs are very important Code: main: example\example Instead of Code: main: example/example Also, check "Resources" forum before posting, there is very useful things such as " https://forums.pmmp.io/threads/plugin-tutorial-for-future-developers.25/ " EDIT : Made a mistake, should be good now. EDIT 2 : Please use Code: [CODE] for your codes and PHP: [PHP] for php.