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
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
In reply to SilkPenny:
$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
Hey! 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.
Hello 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 :)
In 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.
In reply to ivanfromitaly:
Thank you for listening to my suggestion, even more considering it!
Keep up your good work :)
Nice 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.
please 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 :(
In reply to Forge_User_72549700:
please help. i love this plugin, but dosn't work on my serwer 1.14.4.
In 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.
In reply to ivanfromitaly:
Thanks, problem solved. There was a problem with my hosting, but why I don't know. I changed hosting and everything works fine. Thank you for your answer :)
So i need some help with using $NoReplace
Im trying to set a player as a variable yet the variable just keeps getting replaced by the previous players name, the code is here
- /mycmd-variables set tipplayer $player
how would i use $NoReplace if i dont want to replace tipplayer
In reply to krystilize1:
note: to fix i make 2 tempvars, one that was "tip" and one that was "player", this worked fine, though i would like to know what went wrong...
In the guides it mentions a commands.yml but the plugin didn't come with one. Unless you were referring to the default spigot commands file. I put my commands in the config file and they aren't recognized as commands in-game. Here's a pastebin of my config file with a test command.
https://pastebin.com/BBs9qWJ4
In reply to ZeeKay57:
The command(s) file are stored in /plugin/MyCommand/commands/
by default in that folder you can find a file called examples.yml, take a look.
In reply to ivanfromitaly:
So I do I rename the example.yml or use the example.yml or what?
In reply to ZeeKay57:
How you prefer. Just put the yml files inside the /plugin/MyCommand/commands/ directory.
Would by nice if you can add animals and mobs skins for NPC. Best regards. :)
On my server players get rewarded for voting with 'tokens', a special kind of currency stored in their Playerdata within MyCommand.
Is it possible to create a command that compiles a list of the top 10 players with the most voting tokens?
In reply to Forge_User_90669409:
Nope, you can't create a list from there and sort it by the player with the most tokens. I'll see what i can do, when i have time. Basically i have to create a command who does that for you.