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 Apr 14, 2020Is this this the support area? If it I need help with a few things before creating commands. When adding commands, should I create a new commands yml file or should I continue using the examples.yml. If I can use a new yml file can I delete the examples.yml file in the commands folder?
Ok now one question about the command I want to create. I want to create a command that will allow players to teleport to hub even if they're on a different server using the /hub command. I have several lobbies on my server which is why I'm trying to do this.
Would this work?
hub:
command: /hub
type:
- RUN_COMMAND
- TEXT
runcmd:
- /server Hub
- /mvtp hub
text:
- '&fSending you to &1hub'
permission-required: true
If this isn't the area to ask for support, could you please send me the link for the support area?
Thank you in advance
Great plugin by the why this will be very helpfull for my server once I've learned to use it.
-
View User Profile
-
Send Message
Posted Apr 14, 2020In reply to xxjackoutxx:
On the first question, how you prefer, you can create a file for every command, as you can put all in one file. Yes you can delete the examples.
About the bungeecord teleport, in mycommand you can find an option for that, the command type BUNGEE_TP
That's how you do it:
If you want run BungeeCord's commands from MyCommand server, you need to install MyCommand for BungeeCord, and then you can use prefixes to send commands to the proxy :
Check there https://dev.bukkit.org/projects/mycommand/pages/configuration-and-example at "Executing BungeeCord Proxy Commands" section.
Still better, if you want that command to be available on every server you can just install MyCommand for BungeeCord and create the command directly there, and let him run the command "/send $player server_name"
In that way the proxy console, will send X player to the destination.
Check here https://www.spigotmc.org/resources/mycommand-for-bungeecord.72445/
-
View User Profile
-
Send Message
Posted Apr 11, 2020How can I make a command that does not send feedback, like there's a command /leave and if your not in a certain world when you type /leave it sends " you cannot perform this command in this world", how can I disable this message?
-
View User Profile
-
Send Message
Posted Apr 1, 2020Amazing plugin !
I do have a question tho, I wanna make a command like: "/something help", but I can either use the command, or have it registered. If I don't register it, it works, if I do, it breaks for some reason, is there any way to fix this, or work around it ?
-
View User Profile
-
Send Message
Posted Apr 6, 2020In reply to Forge_User_02033506:
If you register a command, it can only be form one "piece". so only "/something". try to register only the main one, and leave the subcommands not registered. Or do all in the main command using the script. Like
-
View User Profile
-
Send Message
Posted Mar 28, 2020Let me first say this plugin is amazing! However, I'm having an issue where I can't get commands to register with either essentials help or natively with the game, allow me to explain. I've created a new /help command to replace the essentials default help menu because it doesn't fit the style of my server. When a command is created it works just fine but with the caveat of while typing it, the game says "Error: command not found" as if the command doesn't exist. I feel like this will confuse players because even though it shows an error while typing, it does indeed work. I've tried renaming it and creating other text based commands, to no avail, that doesn't work either. I really like this plugin but have searched everywhere for a solution and can't seem to find any. If ANYONE is having this issue and knows how to fix it, please share! Ive been working on this for hours and can't fix it. Is there a setting that enables command indexing for the server that I'm missing?
-
View User Profile
-
Send Message
Posted Mar 30, 2020In reply to mangosteenpies:
Basically, if a command is registered by another plugin, in this case Essentials, you can't register it because the spot is already taken. You can, with "register: false", ovverride it. It will always appears registered, because Essentials done that. If you want to remove it completly from essentials, i can suggest you to try to remove the help command inside the plugin.yml file you can find in the Essentials archive. In that way, if the help command isn't registered from anyone, you can do that with mycommand. Otherwise just don't register it.
-
View User Profile
-
Send Message
Posted Mar 30, 2020In reply to ivanfromitaly:
I’ve already removed the help command from essentials. Generally, how would I index a command I make with MyCommand? Say a text command that is registered to /bank which no other plugin uses? The command still shows when typing that it’s invalid however once executed it works as it should. Am I doing something wrong or is this not a feature of MyCommand? I’ve tried using the essentials permission node to add/index commands to show up in the default essentials help menu however it only shows the main MyCommand commands and not ones I make.
-
View User Profile
-
Send Message
Posted Mar 31, 2020In reply to mangosteenpies:
Use register: true and restard the server
-
View User Profile
-
Send Message
Posted Mar 20, 2020Can someone tell me what I did wrong, I tried variable looping so i could set the back location to the right spot before and after being teleported
I tried remove the %playerdata from the back2.x but it didnt change anything
back:
command: /back
type: RUN_CONSOLE
runcmd:
- '$Script$%PlayerData%back2.x=$locX'
- '$Script$%PlayerData%back2.y=$locY'
- '$Script$%PlayerData%back2.z=$locZ'
- '/tp $player $PlayerData%back.x% $PlayerData%back.y% $PlayerData%back.z%'
- '$Script$%PlayerData%back.x==%PlayerData%back2.x'
- '$Script$%PlayerData%back.y==%PlayerData%back2.y'
- '$Script$%PlayerData%back.z==%PlayerData%back2.z'
-
View User Profile
-
Send Message
Posted Mar 14, 2020Does anyone know where I could find other peoples mycommand creations, I'd like to find a way to make a /tpa /tpaccept mycommand, as im trying to reduce the number of plugins on my server (i've pretty much replaced everything else essentials adds).
-
View User Profile
-
Send Message
Posted Mar 15, 2020In reply to sp1dro:
Atm, I guess there's nothing but those help pages to work with. If you have the time to read and experiment with them, I think you'd be fine.
But yeah Ivan should totally make a discord for this so we could share eachothers work :D
-
View User Profile
-
Send Message
Posted Mar 16, 2020In reply to Forge_User_57031538:
I tried and got super confused super fast, and yeah a discord would be neat
-
View User Profile
-
Send Message
Posted Mar 8, 2020Hi! So we're trying to make a private message command that plays an alert sound and has a cooldown. Like this:
'hey':
command: /hey
type: RUN_CONSOLE
runcmd:
- $Script$%if%$CheckPlayerStatus%$arg1%isOnline%==true
- /execute at $arg1 run playsound block.bell.use master $arg1 ~ ~ ~ 10000 2
- /execute at $arg1 run playsound entity.experience_orb.pickup master $arg1 ~ ~ ~ 10000 0.5
- /execute at $arg1 run playsound entity.evoker.prepare_wololo master $arg1 ~ ~ ~ 10000 2
- /tellraw $arg1 "&8[&7!&8] [&e$player &8-> &bMe&8] &b$multiargs"
- /tellraw $player "&8[&7!&8] [&bMe &8-> &e$arg1&8] &b$multiargs"
- $Script$%else%
- $text$&cThat player is not online.
require_all_arguments: true
error-message: "&cUsage: /hey <playername> <message>"
cooldown: 30
register: true
permission-required: false
However there are 3 problems:
1. Players themselves can write mycmd placeholders to that command so it displays them. E.g. "/hey Player $oplist $wgregionname $world" actually displays those placeholders. Only the original written text is supposed to get displayed.
2. "require_all_arguments" is true and yet for some reason the error message does not appear when the player leaves the command blank. Only the $Script$%else% message gets displayed.
3. Cooldown will start even if someone types the command incorrectly or to an offline player. It would be optimal for the cooldown to start only when the player types the command correctly to an online player.
Are there any ways to fix these problems on this command? If not, would you be willing to tweak the plugin? Any help would be highly appreciated!
-
View User Profile
-
Send Message
Posted Mar 12, 2020In reply to Forge_User_57031538:
require_all_arguments works per-line. An alternative can be "required_args: 1", where if you type only "/hey" it shows the error.
The placeholders are a tricky question, maybe i can add something who's replace only the "$args" for example. Otherwise, i should add a permission for every placeholder and it can only get the replace process more heavier.
For the cooldowns i added a command /mycmd editcooldown to manage them. Run it in the "error phase" of the command, through the console. Ex. "$RUN_CONSOLE$/mycmd editcooldown $player command_name 1"
-
View User Profile
-
Send Message
Posted Mar 13, 2020In reply to ivanfromitaly:
Thanks a lot for your help! Got the cooldown and error-message working.
And with the placeholders, sounds good. Whatever you think is the best solution. Anyway the command as it is now can already be given for use to our staff which was the primary idea. But I'm glad if we could get it working so that we could give it to our players too :D
-
View User Profile
-
Send Message
Posted Mar 8, 2020Hello! I would like to know if there is or is it possible to add an "error message" option as a command.
For example, if a player misspells the command, instead of receiving a message defined in "error-message:", a command will be executed, such as an "error-command:".
I really hope you understand and answer, I thank you in advance, you do a great job.
-
View User Profile
-
Send Message
Posted Feb 29, 2020Im trying to add a enchanted_book to the right_click_interaction but it doesnt work and I cant create a command. It says the target block not recognised. but everything is correctly set.
-
View User Profile
-
Send Message
Posted Feb 27, 2020Is it possible to make a command that only runs on a player's first join? Also, an NPC with colliding off still can be pushed around.
-
View User Profile
-
Send Message
Posted Feb 15, 2020Hi, noticed that this placeholder doesn't work.
Always NoData response.
%mycommand_playerdatafor_<player_name>_<variable_name>%