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
GREAT Plugin, only issue I have with it are;
No for loops in the script No args-onward functionality. By this I mean; %multiargs3% would mean all arguments from index 3 onwards.
Eg. /somecommandhere argument1 argument2 argument3 argument4 argument5
%multiargs4% would result in "argument4 argument5". Please add this, it's much needed. Thanks
@InterWall
Give the command permission to the intereste user group, or add "permission-required: false" under your command.
@TheDarkPlayHD
Depends on what are you using. The command change in base of your plugin. Original minecraft give needs some json code, the Essentials give (i don't know if is able to add enchants, but there is an /enchant command). Or you can simply use MyCommand %PlayerOption% function. Check some comments here below, or go in the script page.
How can I create paid commands? When I try to add it as RUN_COMMAND and cost: xx it says that I have to add permission to user for this. So how to create paid command alias?
How can I run the command /give with enchanted items?
@JohOply
Yes, but you need to use this 3 variables directly in the playerevents.yml. Instead, if you need one of this 3 variables in commands.yml, you can pass them in the command and use $arg1...2 ecc for get it.
@KNigtstyleZ
Yeah thank you, i will try! :)
@JohOply
$killer $killed_player and maybe $death_cause Is what you search i think
Hi!
I have a question about this ticket: http://dev.bukkit.org/bukkit-plugins/mycommand/tickets/116-execute-command-on-kill-event-based-on-region/
Is there any $killer and $killed to display/use usernames in messages or commands ? :)
@robi0294
There is an example in the script page. Anyway is this :
You can cut the ItemName and Lores part (if you don't need it).
Hello @Ivanpro
I got the addItem to work. But now i wanna add enchantments for them.
How do you do that? And can you please also show with multiple enchantments?
Best regards
@flyinggoatman
Here the command to be used with MyCommand 5.3.3.
About the SKULL_ITEM, i don't have found any problem about it.
@robi0294 The latest version it's for 1.9,1.8 and 1.7. Anyway i can't reproduce the bug, it works fine for me. I just copy pasted the command you have posted in the previous comment, and works fine. Maybe your yml file is not UTF8, or there is some invisible incompatible character, i don't know.
Hey @ivanpro
I'm the guy with the addItem issue. I'm using the latest version on 1.9, could that be the problem?
@flyinggoatman
You can use Playerdata with the if for limit an command usage. For an example, wait the release of the next version, because i fixed one thing.
The giveall command seems to work. There is only some formatting "error". Use Notepad + + or similar for edit yml files.
@KNigtstyleZ
Try this, correct the formatting. I'm not sure about the other two you asked for.
http://hastebin.com/idehanaton.sm
I had a quick look but maybe I missed it. Is there a one time type or limited times type. A command that would run a set number of times.
This one would only run limited times depending on value under limit. limit:5= it would run 5 times.
This one would run depending on a persons permissions. IF user had cmd.one.5 then it run allow the command to run 5 times for that user. I know this can be done other ways but it's just an idea.
@Ivanpro
It's SKULL_ITEM but it dose not seem to work after a restart. I had to reload the plugin on it's own to get it to work after a server restart.
@MCDrgo001
Edit: I have added something specific in the 5.3.3.
Try in this way:
In this example, how you can see, the fist delay is every time 20, the next one is randomly generated. So, 20 + 180(max) = 200max.
Hello,
Is there any way to set up a random $delay$? I'm trying to make a command take anywhere from 20 to 200 ticks to start running
@GodsDead
I have implemented that recently, wait the next release for it.
For the book, i can do that using this type of code but this code are "breakable" on every version of minecraft, so, on every version i have to update it, and it's not something i want add in the plugin.
@Ivanpro
Yes using $arg1 is what I would like to use, then I can pass this into the menu :)
Also is it possible to load up a book like a menu? So they could use a /bookmenu and it would load a menu of clickable links in a book?