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
Hello,
first of all this plugin is great, but I've a problem with a CALL_URL command. In the URL, there is this:
&d
And during the CALL_URL, the output is not the right one because the URL seems to be modified by the Minecraft's colors system instead of calling this:
REST OF THE URL/ip=%player_ip%&duration=1440
Does anyone know if we can disable the chat format on a specific command?
Thanks
In reply to Forge_User_22209876:
You could try $NoReplace, otherwise rename your GET variable :/
from help doc:
In reply to Forge_User_22209876:
I don't think $NoReplace is going to work there, but what you can do is to create a custom placeholder (variable) with the command /mycmd-variables and give to that placeholder the content you need. Example %pieceofurl1% and set it to &d or put the complete url into that placeholder. Try.
In reply to ivanfromitaly:
I've tried with both of the 2 methods and it don't work but it works with &+d instead of &d.
Thanks you for trying help me
how can you get custom command with a plugin?
i like it easy to use but i need it for plugins
Thank you for making such an amazing plugin! I'm a moderator of a 1.12.2 server using MyCommand, and I have a question about tab compeleter function.
Is there any function that shows players' names starting with some particular characters? For example, if I type (/command r) and press Tab key then players' name starting with "r" (like Rny0_0, RobertJames, Ryan724, ...), or (/command rn) then players' names starting with "rn".
I already tried $player_list, but it didn't seem to work as I wrote above. (It retrieved all players' names no matter which letter I'd typed, and the argument just changed into the name of the player who goes alphabetically first among those that are online)
Thanks in advance!
How in the icon menu can we use modded blocks and modded ids if we only put the name of the item?
In reply to KAMKEEL:
I never tried by myself, but i guess it should works. Just put the correct item name. Use "/mycmd tell $iteminhand" while holding the interested block in the hand to gets the name.
Hello sir. I made custom commands by your plugin, for example: /garage
It works fine when you write it, but the issue is when you write it in chat, it doesn't offer you this command - it's highlighted in red color like it doesn't exist but when you press enter, everything works.
But if you use any other command what other plugins provide, it will offer a list with commands what exist and won't highlight in red when you finish writing it. Here is an example:
So my question is does I can create my custom commands and for example, if I have command /garage then Minecraft will offer you to write this command already when you will just input first letters like "/gar" and then just press TAB and it will write the full command.
In 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.
In 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.
In 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
In 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
Can Someone tell me whats wrong with this command (XP giveaway system)
Hello, does MyCommand offers a function that server issues a specific command every 30 minutes? Automatically? If yes, how do i enable it?
In 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.
Hello. 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.
In 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.
In 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. ;)
Hi, 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