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
Hey i have some suggestions for tab copleter arguments: block argument, item argument and an enchantment argument.
Im trying to make tab completer for a /i command.
In reply to WeirdoDZN:
I've added something for that in the next version, togheter some other one's.
I followed the steps down below but when I do /pl I don't see the MyCommand for bungeecord plugin, I also when I did the /mycmd bungee command it said something in chat about not having the MyCommand for bungee installed.
Open the config file of the Main MyCommand (config.yml) and put PLUGIN_MESSAGE_LISTENER on true
Done. Restart proxy and server.
How to use in MyCommand Spigot side.
Use those placeholder at the start of a runcmd line to execute commands on the BungeeCord Proxy. Or use /mycmd bungee (to debug stuffs).
After I followed those steps, I went to the MyCommand for bungeecord folder and I created a file called hub.yml, in this file I created a /hub command.
Teleport_to_hub:
command: /hub
type: RUN_COMMAND
runcmd:
- /send $player server_name
server_name: Hub
register: true
I restarted my proxy and my Hub server, but when I went in it I couldn't do the /hub command.
Hope you can help me fix these issues
Thank you in advance
What are the materials ????? that i can use after the "1:here:"
If I did this would it work?
In reply to xxjackoutxx:
You can't do that because you need to execute commands on one server from another.
Maybe if you combine CommandSync with MyCommand for BungeeCord you can do that. Basically, use the bungee send command to move the player, and then the sync command, to execute the tp command on that server to move the player from one world to another.
No but my skywarslobby is in my Hub server so how can I create a command that will send me to skywarslobby without teleporting me to hub?
Imagine I'm on my Arena server, how can I make a /skywars command that will teleport me to the hub server to the skywarslobby without teleporting me to hub (world).
Is it possible?
Sorry for bugging you with these questions but I've been trying to find a plugin that can do those functions for a long time and I'm hoping this plugin can do it.
Thanks for helping me I appreciate it
In reply to ivanfromitaly:
I not sure if it is possible butI also want to create a command that allows players to teleport from a different server to my skywarslobby which is in my Hub server. Is it possible?
Would this work if I did this to make the command?
teleport_to_skywars:
command: /skywars
type:
- BUNGEE_TP
- RUN_COMMAND
- TEXT
server_name: hub
runcmd:
- /mvtp skywarslobby
text:
- '&fSending you to &bskywars'
permission-required: true
Thanks again for the support, I will make sure to give this plugin a 5 star review.
In reply to xxjackoutxx:
I've already explained you all the possible cases in the other comment. just read.
Don't random stuff into it. If you want to create a command who teleports you in another server just copy and paste the example i made below, and change the destination server name.
In reply to ivanfromitaly:
I can't delete this reply for some reason. So I'll do a review.
Great plugin I highly recommend people to get this plugin if they want the most complete server you can possibly have.
Is 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.
In 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/
How 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?
Amazing 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 ?
In 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
Let 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?
In 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.
In 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.
In reply to mangosteenpies:
Use register: true and restard the server
Can 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'