MyCommand
MyCommand
Donations
If you like this plugin, and want to offer me a coffee, consider to click the button on the top right corner of the navbar to donate! Thank you :D

Make your own, customized Minecraft commands
Features:
- Make new commands!. (Also registered command)
- Run others command in new one
- Perform several commands in one
- Delayed commands with custom pause, warmups and cooldowns
- Make Shortcut/alias commands or override commands.
- Run commands with any item , block, signs or even (villager) NPC's.
- Various functions for costumize commands, like placeholders, scripts (if-else) and more.
- Console support
- Economy support (Require Vault)
- All features are highly customizable
- No command limits with multiple file support
- Customizable IconMenu (ChestGUI), ActionBar, BossBar, Hover/ClickableText, Title and Scoreboard commands.
- Allow the execution of commands in various circumstances (per world, by worldguard regions and more.
- Custom players database where you can store anything you want to personalize even more your commands. SQL database supported.
- BungeeCord feature, Scheduler, Join/Quit/Death events, PHP/GET request ...
- ... And much, much more..!
Configuration and examples (Documentation)
Commands & permissions
Video Tutorial :
(French) Getting Started (TEXT and ALIAS commands) by Texier (MyCommand 5.5.0)
(English) by Koz4Christ. (MyCommand 5.1.8)
If you have to report an error in the chat, or just a command section, use pastebin or a similar website. Help with YML code error : http://yaml-online-parser.appspot.com/
This plugin uses bStats Metrics - MyCommand stats page
-
View User Profile
-
Send Message
Posted Jun 12, 2016@HairyDaddymc
Hey there, if you did not notice, I am trying to do the same as you. I figured you should have a look at mine to improve your own.
This is actually pretty simple yet a tad complex. As to answer what you were looking for, the permission you set for broadcasting the message is all you need to add as a permission, no mycommand.cmd.blahhh, all you need is your permission. As an example like mine, I set the perm to be staffchat.message, if I don not have the permission, you cannot see the messages, if you add just staffchat.message, you can receive these messages. As for all your players seeing it, well, I can't tell you what is wrong without seeing a perms file.
Cheers, Zombie
-
View User Profile
-
Send Message
Posted Jun 12, 2016@p1nkwafflez
You are using 1.10, as far as we know, MyCommand does not work on 1.10 as of now. This may be an issue, and that is causing the command spam. I would recommend waiting before posting an error like this as this version is not yet supported. Once it has been updated (hopefully within a few weeks), if you still have the issue, then you should bring it up.
Also, I would recommend looking into your log to make sure there is not an error being thrown.
-
View User Profile
-
Send Message
Posted Jun 12, 2016I mentioned this a while back, but im still having a problem with it, basically i want to charge £2000 for using /rg claim. Now this command works perfectly but if a user types /rg claim WITHOUT the argument it still charges the player and i don't want it to do this, i only want it to charge them once the command is fully completed.
Also i just noticed if a player does the command it charges them about 30 times?
-
View User Profile
-
Send Message
Posted Jun 12, 2016Hello.
I'm using your example from playerevents, with the kills. Problem is, when a player gets killed by a monster or mob or whatever, it says the person was killed by $killer in chat. is it possible to make a prevent_mobs: true or something?
best regards,
Robin
-
View User Profile
-
Send Message
Posted Jun 12, 2016I can’t get "broadcast_message_permission_node: permission.for.see.this.message" to work propperly. Everytime I run the command the server broadcasts the message to everyone. This is what I have on commands.yml: st: command: /st type: broadcast_text text: - '&3[Staff &f$player&3] &7$multiargs' broadcast_message_permission_node: permission.for.see.this.message
and these are the group permissions: - mycommand.cmd.st - mycommand.cmd.st.permission.for.see.this.message
-
View User Profile
-
Send Message
Posted Jun 12, 2016playerevents.yml doesn't work. and i have in config.yml EXTRA_LISTENER on true
-
View User Profile
-
Send Message
Posted Jun 12, 2016@Ivanpro
Well, unfortunately, I couldn't add a custom command to Essentials' help, even though it's registered. essentials.help.mycommand.hub, .gotohub, .cmd.hub, .cmd.gotohub didn't work, although the permission essentials.help.mycommand does display the standard help from MyCommand
Anyways, thanks for the help
-
View User Profile
-
Send Message
Posted Jun 12, 2016@Ivanpro
This is meant to be run by BuyCraft, (From the console)
So when a player buy a MoneyBoost all the online players sould get 5K
Do you know if that is even possible?
-
View User Profile
-
Send Message
Posted Jun 12, 2016@UndeadJ3T
Try this :
Where /eco = your economy command.
-
View User Profile
-
Send Message
Posted Jun 12, 2016How do i make so all players on my server get 5K when i type a command? is that possible?
-
View User Profile
-
Send Message
Posted Jun 11, 2016@robi0294
Ah, ok, but ..no, you can't do that in the iconmenu, for now.
About the cooldown feature, it's already implemented for other plugin commands (COOLDOWN and WARMUP command type), i have to implement in some way this thing also for custom command part of the plugin.
Instead about the script, depends what you want. In the current code, if one player have "mycmd.default" permission, the command always execute only the first if. If you want execute (for example) only the kit gold, remove the default permission to the player, or, put the "mycmd.default" condition, for last. Instead, if you want execute every true if, change the elseif back to a normal if.
-
View User Profile
-
Send Message
Posted Jun 11, 2016@Ivanpro
I don't think you know what i mean. I read the whole example page, I want it so when i click the icon, in the iconmenu, it dosn't close, BUT i also wanna add a command to that. So when i click the iron, it runs the command, but dosn't close the menu.
And the cooldown, i want it to show how long, it takes before the cooldown is over.
example. I select a kit or whatever, 5 mins cooldown. i try to use it again before 5 mins is over, it just says 'please wait till the cooldown is over'. Is it possible to make it like 'You need to wait x minutes more before you can use it again'
Thanks :)
Can i please get you to edit this file, so it does what i want. I still cant get it to work.. Please :P
'kits':
command: /kits
type: RUN_COMMAND
runcmd:
- $Script$%if%$HasPermission==mycmd.default
- $text$&aDefault&f, &aTools&f, &cStone&f, &cIron&f, &cGold&f, &cDiamond&f, &cTitan&f, &cHawk
- $Script$%elseif%$HasPermission==mycmd.stone
- $text$&aDefault&f, &aTools&f, &aStone&f, &cIron&f, &cGold&f, &cDiamond&f, &cTitan&f, &cHawk
- $Script$%elseif%$HasPermission==mycmd.iron
- $text$&aDefault&f, &aTools&f, &aStone&f, &aIron&f, &cGold&f, &cDiamond&f, &cTitan&f, &cHawk
- $Script$%elseif%$HasPermission==mycmd.gold
- $text$&aDefault&f, &aTools&f, &aStone&f, &aIron&f, &aGold&f, &cDiamond&f, &cTitan&f, &cHawk
- $Script$%elseif%$HasPermission==mycmd.diamond
- $text$&aDefault&f, &aTools&f, &aStone&f, &aIron&f, &aGold&f, &aDiamond&f, &cTitan&f, &cHawk
- $Script$%elseif%$HasPermission==mycmd.titan
- $text$&aDefault&f, &aTools&f, &aStone&f, &aIron&f, &aGold&f, &aDiamond&f, &aTitan&f, &cHawk
- $Script$%elseif%$HasPermission==mycmd.hawk
- $text$&aDefault&f, &aTools&f, &aStone&f, &aIron&f, &aGold&f, &aDiamond&f, &aTitan&f, &aHawk
- $Script$%elseif%$HasPermission==mycmd.mod
- $text$&aDefault&f, &aTools&f, &aStone&f, &aIron&f, &aGold&f, &cDiamond&f, &cTitan&f, &cHawk
- $Script$%elseif%$HasPermission==mycmd.modplus
- $text$&aDefault&f, &aTools&f, &aStone&f, &aIron&f, &aGold&f, &cDiamond&f, &cTitan&f, &cHawk
permission-required: false
-
View User Profile
-
Send Message
Posted Jun 11, 2016@Ivanpro
Yes, I'm using the command /minecraft:tellraw and i have no problems, works perfectly. The only downside is that it is a little messed up to write, that's all :)
-
View User Profile
-
Send Message
Posted Jun 11, 2016@robi0294
The if works in this way : If true = do only the things below the true IF. If you want execute all the commands, remove the elseif then.
The iconmenu, there is an example in the exampels page, just copy paste it. (Works only on the latest build of MyCommand, so update first).
Cooldowns and playerdata are 2 different things. So, what do you need? Check the examples page and look if you find something useful for you.
@Marchio98
Quella funzione è sempre stata solo abbozzata, visto anche che funziona solo su Spigot, ed aggiungere il supporto al bukkit, significa creare un MyCommand che si rompe ad ogni aggiornamento di minecraft. In ogni caso, il problema principale è trovare un modo per implementare via testo quelle funzioni, per il momento, la cosa è singola, quindi l'ho creata facilmente asd. Vedrò in futuro. L'alternativa è utilizzare direttamente il comando di default di minecraft /raw qualcosa, ed inviare il testo in json.
-
View User Profile
-
Send Message
Posted Jun 10, 2016Hello.
It still dosn't seem to work. Now it just only shows the stone condition.
Also, the iconmenu. I can't get it to add mutliple commands. But what i wanted, was that the menu dosn't close when i click on an item, that has a command binded to it.
I also wanna know about the cooldown. I know it's properly something with the playerdata, is it possible you can help me with it? :)
Best regards.
Robin
-
View User Profile
-
Send Message
Posted Jun 10, 2016@Ivanpro
Thanks a lot, so.. I've a suggestion for future updates:
Add with raw_text the possibility to use hover variable on a part of a line (I hope it is understandable xD)
Thank you!
-
View User Profile
-
Send Message
Posted Jun 10, 2016@Marchio98
Nope, currently with raw_text you can do only one thing for line.
@MCDrgo001
Never used that, but i think you have to register the command first. Put "register: true" under the interested command.
@robi0294
Just put that string in the "command" space. There is an example in the "examples page". For the script, just put the default condition "mycmd.default", for last.
-
View User Profile
-
Send Message
Posted Jun 9, 2016Is it possible to add a MyCommand command to Essentials' help file (without editing the file manually)?
The plugin documentation shows that to add a command from a certain plugin to the help file, I should give the user the permission essentials.help.[pluginname].[command] (both arguments in [] lowercase).
The command is called 'gotohub' and can be run using /hub. I've already tried giving a player the permissions essentials.help.MyCommand.hub, essentials.help.mycommand.gotohub, essentials.help.mycommand.hub.
-
View User Profile
-
Send Message
Posted Jun 9, 2016Hello again.
I really cant get the %stayopen% to work... can you possibly do an example of where to put it in?
Also, the problem i had with the different types of permissions for different ranks, now, no matter what, only shows the first one message, which is the default rank's message. I replaced the other ones with %elseif%, do you have an idea of what it might be?
I also wanna ask, if it's possible to add the specific time of the cooldown message? Like, whats left?
Best regards.
Robin
-
View User Profile
-
Send Message
Posted Jun 9, 2016@Ivanpro
Is it possible to do this?: