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 Nov 10, 2019In reply to Forge_User_84222464:
register that command by adding "register: true" under it. Check the configuration examples, you can customize the Tab completer aswell.
-
View User Profile
-
Send Message
Posted Nov 10, 2019In reply to ivanfromitaly:
Hello Sir. Thanks for your fast reply. Unfortunateley i deleted the examples. I can't look on how to do it. I would be thankful if you could just add it to my command so i can make the same for all other commands. Here is config for one of my commands: https://hastebin.com/kirodilola.bash
Thanks, will wait for your reply.
-
View User Profile
-
Send Message
Posted Nov 11, 2019In reply to Forge_User_84222464:
As i said, just add register: true
For the examples, i mean, this page here : https://dev.bukkit.org/projects/mycommand/pages/configuration-and-example
-
View User Profile
-
Send Message
Posted Dec 14, 2019In reply to Forge_User_84222464:
If you go to the top of this page, you'll see a link for "Pages". This brings you to the wiki with a lot of great resources for this plugin, I would suggest looking there first.
But he means just add "register: true" to the end, just like the "permission-required: false" and the other flags. It should look like this
-
View User Profile
-
Send Message
Posted Nov 9, 2019Can Someone tell me whats wrong with this command (XP giveaway system)
-
View User Profile
-
Send Message
Posted Nov 3, 2019Hello, does MyCommand offers a function that server issues a specific command every 30 minutes? Automatically? If yes, how do i enable it?
-
View User Profile
-
Send Message
Posted Nov 5, 2019In reply to Forge_User_84222464:
There is a scheduler feature. Isn't the most updated function of the plugin, but it should do the job.
-
View User Profile
-
Send Message
Posted Nov 2, 2019Hello. I've been trying to figure out how to reward a player after they reach a certain McMMO level. I have placeholderAPI and have been trying to use the script feature of MyCommand to do this but have had little/no luck.
Command Usage:
/checkSwordsLvl <playerName>
Then it will check if the player's swords mcmmo level is >= 150
- if so, it'll broadcast: "[Debug] Lvl is >= 150!"
- else will print "[Debug] Script works but if statement didnt!"
Any help would be greatly appreciated, thanks!
'check swords lvl':
command: /checkSwordsLvl
type: RUN_CONSOLE
runcmd:
- $Script$%if%$arg1%mcmmo_level_swords%>=150 # arg1 = playerName
- /broadcast [Debug] Lvl is >= 150!
- $Script$%else%
- broadcast [Debug] Script works but if statement didnt!
permission-required: true
permission-node: mycommand.mcmmo.check.level.swords
permission-error: "&cYou do not have permission!"
require_all_arguments: true
- - - -
Also, is it possible to do nested if statements so it's not all on one line? I checked the examples but didn't see any examples of nested if statements.
-
View User Profile
-
Send Message
Posted Nov 3, 2019In reply to piggiesgosqueal3777:
Use the parseother expansion for PlaceHolderAPI to retrieve other player information.
https://api.extendedclip.com/expansions/parseother/
it becomes : %parseother_{$arg1}_{mcmmo_level_swords}%
in the if : $Script$%if%%parseother_{$arg1}_{mcmmo_level_swords}% >=150
About nested if, no, you can't. But you can use if or elseif depending on what you need. elseif's gets executed only if the previous if is false. normal if's get executed also if the other one's was true.
-
View User Profile
-
Send Message
Posted Nov 3, 2019In reply to ivanfromitaly:
Thanks for the quick and helpful reply! It worked perfectly. :)
As for nested if statements, that's unfortunate. But still offers many many features. :)
One of my favorite plugins. ^_^ Thank you for continuing to maintain this!
Edit: Enjoy a coffee and a half. ;)
-
View User Profile
-
Send Message
Posted Nov 1, 2019Hi, I have a quick and dumb question! I need to use a custom command for /exp withdraw <amount>. I know the following is not correct, but need to know what to add to make it work. I've tried various arguments without success. Any help would be appreciated and thank you!
bottle:
command: /bottle
type: RUN_COMMAND
runcmd:
- /exp withdraw
permission-required: false
-
View User Profile
-
Send Message
Posted Nov 2, 2019In reply to SilkPenny:
bottle: command: /bottle type: RUN_COMMAND runcmd: - /exp withdraw $arg1 permission-required: false$arg1 is what get replaced after /bottle, so "/bottle 10" will become "/exp withdraw 10"
If you need more inputs, use $arg2, 3 ecc or $multiargs
-
View User Profile
-
Send Message
Posted Oct 27, 2019Hey! I was wondering if you could decrease the delay of the RUN_AS_OPERATOR command. Right now it takes a few second for the player to perform the command.
-
View User Profile
-
Send Message
Posted Oct 20, 2019Hello again Ivan..
I have to ask you another very specific question..
Is it possible to have the blockset command trigger 2 different commands depending if the user left or rightclicks the block i've set? If not, i would really appreciate if you considered adding it :D
To the user '@nathanverkerk' below me, i think you are trying to register commands that already exist as registered inside plugins like EssentialsX..
Try to comment out the "registered: true" line for your custom commands, and see if that does anything for you.. if not you can always remove the comment '#' again.. :)
OR you might benefit from making "RUN_COMMAND" into a "RUN_CONSOLE" since you are making the players run the commands for /tp etc.. Which they might not have the permission for, and that could trigger the default missing permission error you recieve.
Thanks :)
-
View User Profile
-
Send Message
Posted Oct 23, 2019In reply to Digital_Beast:
Nope, you can't. At this point it's a bit late to add that without break something (maybe). I'll have it in consideration, and give a look at when i put hands on the plugin, and see if i can add something.
-
View User Profile
-
Send Message
Posted Oct 29, 2019In reply to ivanfromitaly:
Thank you for listening to my suggestion, even more considering it!
Keep up your good work :)
-
View User Profile
-
Send Message
Posted Oct 13, 2019Nice plugin!
I have one problem with the permission nodes. Maybe someone can help me?
The permission plugin is use is LuckPerms.
When i do the /dice permission it all works. but the perms i maked doesn't work.
the command where the perms doesn't work.
sethome:
command: /sethome
type: RUN_COMMAND
registered: true
runcmd:
- $Script$%PlayerData%home.x=$locX
- $Script$%PlayerData%home.y=$locY
- $Script$%PlayerData%home.z=$locZ
- $text$Home successfully created
cost: 0
permission-required: true
permission-node: mycommand.cmd.sethome
permission-error: "&a$player! , &2You can't use this command!"
home:
command: /home
type: RUN_COMMAND
registered: true
runcmd:
- /tp $player $PlayerData%home.x% $PlayerData%home.y% $PlayerData%home.z%
- $text$Geteleport naar Home
cost: 0
permission-required: true
permission-node: mycommand.cmd.home
permission-error: "&a$player! , &2You can't use this command!"
spawn:
command: /spawn
type: RUN_COMMAND
registered: true
runcmd:
- /tp $player 36.0 31.0 -1539.5
- $text$Geteleport naar Spawn
cost: 0
permission-required: true
permission-node: mycommand.cmd.spawn
permission-error: "&a$player! , &2You can't use this command!"
If i try with the perm given i get the default minecraft permission error.
-
View User Profile
-
Send Message
Posted Oct 12, 2019please update for 1.14.4 because it doesn't work on it. Shows the message 'serwer closed' and when I turn on the server again. I can't run it with this plugin. P.s sorry for my english, but I believe you understand me. Meybe somebody have some idea, how can i fix this without upadte?
edit: when i trying to join the server i have this message on my rcon
[22:30:42] [User Authenticator #6/INFO]: UUID of player Stivi is 90820690-dd2c-3696-98fb-b8d1d446ef26
edit: i I created a new server, uploaded my plugins and everything works, so why doesn't it work on mine serwer :(
-
View User Profile
-
Send Message
Posted Oct 13, 2019In reply to Forge_User_72549700:
please help. i love this plugin, but dosn't work on my serwer 1.14.4.
-
View User Profile
-
Send Message
Posted Oct 14, 2019In reply to Forge_User_72549700:
Post the full server log, from start to end (in private) and maybe we can find the problem. Anyway, i don't think it's nothing to do with MyCommand.