Make your own Commands
Create your own commands with your own permissions and your own messages to display without learn how to code!
How to use
To make a new command, just type the command name in the config.
Then you set under the command name the permission, and the message to display.
If your commands are not working after a reload/restart, you have errors in your config file.
Please check if ALL your messages are in ' ' symbols. If they are in the symbols, please check your config file
HERE for yaml errors.
Permissions
Every command has its own permission node. You can set is in the config.
Permission to reload the config: myoc.reload
Permission to list the commands: myoc.list
Commands
Just type /myoc reload to reload the config.
Just type /myoc list to list all commands and aliases.
@leonvakt
Question:
That should work.
I will try to fix these bugs and to add most of your requested features.
thanks
@RealMTG
Delete the plugin, start your server, stop it and install the plugin again and check the config for errors ;)
@Dead_Island_Dude
If you go in the plugin .jar and remove it from that config it wont have that command, i did that for /list
Question: If i set all staff commands to have one permission, do they get all those commands wen i give them one perm that goes to 3 different commands?
Bug: wen i have blocked a command in a worldguard region players can still use commands from myoc.
Suggesion: making a online players that shows the name and also the one we have that show how many and the name can have the color of the rank? Its posseble because ive seen on other servers. Heres a picture how ive seen it. if you can too you can add essentials AFK tags to it
Bug 2: It says no permisson and unknown command wen ppl dont have access to the command
Suggestion 2: Can we be able to set the no permission message our self, maybe one for every command like one says you do not have access and another says you need to be that and that so get that command?
Suggestion 3: Can you add so we can make a /tpa [player] command because essentials tpa is not that good that i want it to be
Suggestion 4: maybe we can have in the teleport commands if the player take damage the teleport get canselled but not on all of them example like i want one of my commands
Teleportations:
/leave:
delay: 10.0
damagecansel: true / false <
message: '&aYou have been teleported out of pvp arena'
permission: 'myoc.leave'
world: 'spawn'
x: 1430.0
y: 10.0
z: 1034.0
pitch: 0.0
yaw: 90.0
Thats it if you made it to the end, i think this is a good plugin and i wanna give alot of good ideas ;)
@leonvakt
that is not possible, because the messages are handled by the plugin that is handling the command. There is no way to edit it.
@Dead_Island_Dude
No, you have to reload it, because changes are only made, when you reoad the config.
@Zalko33
If you read the config help, you would know how to do this. Instead of putting "sender" on the "sendTo:" line, simply put "all" instead.
Also, I still have this reocurring problem. I took out some of the pre-loaded commands, such as /vote and /list because I have other plugins that use those commands, but for some reason, when I do /vote or /list after a server restart, it uses the MYOC commands that I removed instead of the other plugins' commands. Is there any way to fix this other than doing /myoc reload every time?
How can I create a command that will be broadcasted to everybody, not only to sender? Thanks for replay and Have a nice day, Zalko!
When I give players the permission, they can't use it anyways. :/ It just says You don't have access to that command
@JeterLP
Thanks :D
Really cool plugin! :D
I use it to make funny commands, like text! :P
Could you add that we can set our own message to the aliases (maybe if nothing is set, it chose the default one)?
Dont mean to hate on this plugin or anything, its awesome! But just to let people know, if youre looking for more powerful custom command functionality, check out VariableTriggers. However, this plugin is much more lightweight.
@Soldadosteam
give them the permission node
With my admin player,the commands works,but with no-admin players,unknown command. Is this an error,or i need do other thing?
would it be possible to see an update in the near future with a possibillity to make more than 1 execute command in the alias section?
becuse this would be much useful.
When my server starts up I have all the commands from the original config and when I /myoc reload I don't have any commands, I used yamllint.com and it said the config is ok.
http://pastebin.com/7trN8Bxq
Can anyone help me?
I took out some of the pre-loaded commands, such as /vote and /list because I have other plugins that use those commands, but for some reason, when I do /vote or /list after a server restart, it uses the MYOC commands that I removed instead of the other plugins' commands.
@Dead_Island_Dude
Yes, I will try it.
@TheR3ktor
Yes, I will add a cooldown for every type of commands.
Can you add cooldown ? :)