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
In reply to pretti_:
The core of the plugin and most of his functions works on all the versions i've checked as "working". There is a warning in the plugin start who say exactly this. The best i can do is block the unsupported features with a message, so it doesn't give you an error. Anyway, from what i can remember, the API for the Title in 1.8.8 were half broken, and the best it allowed you to do was the same you can do with /title.
Is there a way to make a command behave differently based on the perms of the user?
In reply to tubbyflumpkins:
Creating something like this, yes :
I would like to make this
TokenMaker:
command: /Token
type: RUN_CONSOLE
runcmd:
- /replaceitem entity $player weapon.mainhand $iteminhand{display:{Lore:["$player Token"]}} $amount_iteminhand
As a command that replaces item in hand with the same item but with custom lore. Problem being that minecraft'S /replaceitem is case-sensitve and the output for $iteminhand is in caps. So it doesn't work
I can just do for a specific item instead, and make the command check for said item with an IF statement. But I just wanted to let you know, as a possible improvement to make it use lower cases, for those pesky case sensitive MC commands
In reply to jef_is_god:
I see, i've added something that's allow you to do that on a forgotten feature "%TempVariable%"
Try in the 5.5.0 version, example of use :
Anyway, there are already some ways to manipulate the iteminhand like :
In reply to Ivanpro:
Thanks!
Another question/idea to add,
Cool down applies no matter if command is successful. For instance if i want a command that check if player has enough exp before running command. If they dont have the xp, then I wouldnt want to apply a cool down, i'd just want to msg them the dont have enough xp for it
So is there a way to apply cool down within an if condition?
In reply to jef_is_god:
Cooldown's check are made before the "runcmd" part, so, that's what happen. if you use built in cost features, those checks are made before the cooldown. Of course in your case you can't do that, but you can make a workaround to do what you want.
Create the first command where you check the exp :
Then create a second one with the cooldown on it and lock it under the "execute_mode: FROM_ANOTHER_COMMAND"
In reply to jef_is_god:
As i said, i've implemented a sub-command that's allow you to manage active player cooldown's. If you want to try it, i've uploaded an updated 5.5.0 version with that in it.
Link Removed: https://www.mediafire.com/file/b72j57pfpcgg5z5/MyCommand_v5.5.0_alpha_may_3_2019.zip/file
this site don't really love mediafire, it put's file removed before it lol.
Basically that's how you have to use it :
In reply to Ivanpro:
that makes sense, thanks!
First off this is one of my favorite plugins! Can make a lot of cool commands with it
But question, I see there are block and money cost options. Is there and experience cost option for commands?
In reply to jef_is_god:
Incase their isnt an option, I made an alternative for others:
ExpThingy:
command: /ExpTester
type: RUN_CONSOLE
runcmd:
- $Script$%if%$level>=5 #asking if player's lever is 5 or higher
- /tell $player command worked #replace with your command
- /exp give $player -5l #Takes 5 levels from player
- $Script$%else% #if condition above not met, following commands run
- $text$You don't have enough Experience levels! #Tells player they dont have enough exp
permission-required: false
Hi, Happy Easter :)
I've been using MyCMD for a while now but have run into an issue where a normal player cannot access a certain block. I have created a GUI with Ultra Customizer and the command is /guide to open up the guide which all players have permission to.
I have an NPC spawned inside two barrier blocks. The barrier blocks have both had the command /mycmd-blockset create and /mycmd-blockset add /guide to them. When an opped player right clicks on either of the barrier blocks (command blocks) it swiftly opens up this gui displayed here. http://prntscr.com/nf7fib
However, whenever a player who is not opped tries to right click on the npc/barrier blocks, nothing happens.
http://prntscr.com/nf7hz8
I use Luck Perms as my permission manager and in the default group, I have given them the permissions:
mycommand.block.all.use
mycommand.cmd.all
http://prntscr.com/nf7iiz
However this still doesn't seem to work.
Whats my best bet from here? Cheers
In reply to trewology:
Don't forget to give also the permission to use the /guide command to the player. If you already have done that, i can't really help you. I've tested a working scenario with LuckPerms, and the Barrier block in mycmd blockset, with a fresh group and all works fine. Double check if all is ok.
Hi!
I just started using Mycommands and I ran into a problem. I am trying to give the command to spawn a horse to players. But I do not want to give the entire spawnmob command to the players. Rather just run the command and a horse appears and thats it. I have tried using ADD_PERMISSION and RUN_CONSOLE. Both of these do not work and returns that it is trying it in console, but is giving custom error message that was programed in the MyCommand commands.
spawnhorse:
command: /spawnhorse
type: RUN_CONSOLE
runcmd:
- /spawnmob horse 1 $player
permission-required: true
permissions-node: mycommand.cmd.horse
permission-error: "&a$player!, &2You can't use this command!"
cooldown: 1200
Chat returns the permission error and console returns this:
[02:26:06 INFO]: NormTheLegend issued server command: /spawnhorse
[02:26:06 INFO]: NormTheLegend issued mycmd command ID(41) /spawnhorse
This is what is in my permission's file. I added the essentials pieces to try and get this working.
- mycommand.cmd.horse
- essentials.spawnmob.horse
- essentials.spawnmob
Any help will be appreciated!
In reply to GimmeWelfare:
if the /spawnmob command doesn't support the console, i guess you can't run that from there.
You can do somethign like this (if you have Vault installed) to make a "workaround" to that :
In reply to Ivanpro:
Thanks for your help! The fix was the use of your workaround and seeing my own stupidity. In my permission-node line, I accidentally put permissions-node. That stopped the entire command from registering and did not allow the command to besides from ops. Plus the use of your workaround it allows the player to spawn them. Thanks!
Hello
I use Mycommands and I have some suggestions that can further improve this incredible plugin.
1- Add these variables (%groupname%), ($text_to_specific_group<%groupname%>), ($runcommand_group<%groupname%>) and ($runconsole_group$);
Example:
command: /help
type: RUN_CONSOLE
runcmd:
- '$text_to_specific_group%helper% &6$player &7need help:'
- '$text_to_specific_group%helper% &6>> &e$multiargs'
- '$runcommand_group%helper%/ExecuteForHelperOrHigherGroup'
- '$runconsole_group$ give %helper% stone 1 name:&dOnly_the_auxiliary_or_higher_group_will_receive'
- '$text$&aYour question has been sent, it will be answered shortly!'
permission-required: false
required_args: 1
error-message: '&4Use: &c/help (msg)'
cooldown: 30
In reply to pretti_:
there is already something similar in the plugin, but using the permission (and not groups who depends from external plugins)
In reply to Ivanpro:
Thank you, it worked.
I noticed that you updated the plugin, but for some reason several things will no longer work in spigot 1.8.8, will no longer have support for spigot 1.8.8?