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.
@JeterLP
okey great
very nice :D
@hermandelul
Okay, I will look for both things. Please be patient
and another question
can you make an command type like alias
but that the given command to execute is running by the console?
@JeterLP
I've tried, but
this is my code: http://pastebin.com/Jwh4rdZA
end it will result in
" [Hermandelul] im %sender% "
i also tried it with %arg1 but that works only in the message not in the command
@hermandelul
This should already work!
hello
Can you add the variable %sender% into the execute
like execute: '/say im %sender%'
that will output the senders username?
i will be very usefull on my server, where i use your plugin for almost 2 years :D
@F0C0S
Zur Frage 3
Wen du ein Permissions Plugin nutzt muss der Nutzer des Befehls Permissions dafür haben sich den Rang Polizist geben zu können. hat er diese Rechte nicht kann er sich auch nicht Polizist machen also einfach mal (Beispiel bei Permissions ex: 'pex.user.player.group.set.Polizist'(Glaube das das so ist)) bei den Rechten hinzufügen von Permissions ex und ausprobieren
Well, switched to a Cauldron 1.7.10 server and can't run it at all, sadly. Does react to /myoc and show that I should use "/myoc <reload:list>" but get the exact same message if I try reload or list. I give up :P
@ursak
The command execute works perfectly for me. Make sure you do not have a '/' in the config. Although the examples seem to include the '/', do not use them. When the plugin executes the command, it already adds a forward slash, so it acts as if you have put two forward shashes.
Example:
Hope this helps :)
y no update
execute still doesn't work. Atleast not with 1.7.9 of spigot.
can u please a add a selection so like u can add message but alis but its called randomalis so you can add multi commands and it will only pick one of them so like /join sg and it would join a random games
oh can you please update ??
Hallo lieber JeterLP, bei mir gehen die Permissions leider nicht egal welchen command die permissions gehen bei mir einfach nicht. Ich benutze PermissionsEx. MFG: Martin
Hallo JeterLP, ich hoffe du kannst mir weiter helfen! Aso ersmal danke ist ein sehr schönes Plugin.
So jetzt zu meiner Frage: Ich will sowas wie eine Polizei befehl machen!
Der Code:
/marke: mode: 'message' permission: 'myoc.marke' sendTo: 'sender' messages: - '&6Officer &3%PLAYER% &6nimmt seine Marke aus dem Schrank und meldet sich zum Dienst!'
Frage 1: Bei (sendTo: 'sender') wie kann ich machen das das jeder Spieler sieht?
Frage 2: Ich wollte machen das wen man den befehl eingibt bei %PLAYER% mein name steht geht das? Also ich hätte da mein name eintragen können ich wollte das aber so machen, der den befehl eingibt soll da sein ingame name stehen! GEHT DAS?
Frage3: Geht das wenn man den befehl eingibt das man dann in eine Gruppe hinzugefügt würd? zb. Ich bin Gruppe Normal dann gebe ich den befehl ein (/marke) und dann ist man Gruppe Polizei!
Danke in vorraus!!
MFG Florian|F0C0S
@JeterLP
what will it have :D
@xDizasterCYx
new update is coming soon
@JeterLP
hey could you update to 1.7.9 because when i updated to 1.7.9 since months ago yesterday i realise that the aliases especially when you execute a command is not working.
@Penz5557 The yml format does not allow spaces. So no, sorry.
@Layania
replace %a with %arg1 and %b with %arg2