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
-
View User Profile
-
Send Message
Posted Jun 9, 2016@FriedRyan
Currently you can't add the "skin" to the SKULL_ITEM. I have added this in the next release.
@robi0294
Because RUN_COMMAND require runcmd: and not text: . Anyway, in this "way", if one player have all this permissions, he get all the messages. Use elseif instead of if from the second if and the next one. And yes, you can add multiple commands in the icon menu (split them with the ";") and yes, you can add %stayopen% for keep open the iconmenu.
@KyBLKuBA
? The $player placeholder is already the sender name. What do you need?
-
View User Profile
-
Send Message
Posted Jun 8, 2016@Ivanpro
I am trying to use my player head as the icon in the iconmenu, but I can not get past the Steve head, I have it set to SKULL ITEM and 3 for item data, but I don't know how to use the format to add skull owner! Thanks.
-
View User Profile
-
Send Message
Posted Jun 8, 2016Hello, I'm trying to get the $HasPermission to work.
I want it, so if u have x permission - it shows a different message.
For example. I have the donation ranks to show more 'green' kits. How do i get this to work? Right now, it says Empty in chat whenever i try to type the command.
This is what i have:
'kits':
command: /kits
type: RUN_COMMAND
text:
- $Script$%if%$HasPermission==mycmd.default
- $text$&aDefault&f, &aTools&f, &cStone&f, &cIron&f, &cGold&f, &cDiamond&f, &cTitan&f, &cHawk
- $Script$%if%$HasPermission==mycmd.stone
- $text$&aDefault&f, &aTools&f, &aStone&f, &cIron&f, &cGold&f, &cDiamond&f, &cTitan&f, &cHawk
- $Script$%if%$HasPermission==mycmd.iron
- $text$&aDefault&f, &aTools&f, &aStone&f, &aIron&f, &cGold&f, &cDiamond&f, &cTitan&f, &cHawk
- $Script$%if%$HasPermission==mycmd.gold
- $text$&aDefault&f, &aTools&f, &aStone&f, &aIron&f, &aGold&f, &cDiamond&f, &cTitan&f, &cHawk
- $Script$%if%$HasPermission==mycmd.diamond
- $text$&aDefault&f, &aTools&f, &aStone&f, &aIron&f, &aGold&f, &aDiamond&f, &cTitan&f, &cHawk
- $Script$%if%$HasPermission==mycmd.titan
- $text$&aDefault&f, &aTools&f, &aStone&f, &aIron&f, &aGold&f, &aDiamond&f, &aTitan&f, &cHawk
- $Script$%if%$HasPermission==mycmd.hawk
- $text$&aDefault&f, &aTools&f, &aStone&f, &aIron&f, &aGold&f, &aDiamond&f, &aTitan&f, &aHawk
- $Script$%if%$HasPermission==mycmd.mod
- $text$&aDefault&f, &aTools&f, &aStone&f, &aIron&f, &aGold&f, &cDiamond&f, &cTitan&f, &cHawk
- $Script$%if%$HasPermission==mycmd.modplus
- $text$&aDefault&f, &aTools&f, &aStone&f, &aIron&f, &aGold&f, &cDiamond&f, &cTitan&f, &cHawk
- $Script$%else%
- $text$gg
permission-required: false
also..... is it possible to add mutliple commands to a icon menu item? if i want it so when they click something in the menu, it dosnt close the menu, but keeps it open?
best regards:
robin
-
View User Profile
-
Send Message
Posted Jun 7, 2016@GodsDead
I think the easiest way to deal with this would be vanilla scoreboards. Make a scoreboard value 'DonationLeft' with '/scoreboard objectives add DonationLeft dummy'.
Then make a scheduled, daily command '/scoreboard players add ?Server? DonationLeft 1'
For the MyCMD command for promotion, you could have the following:
Thus, you could have the payment plugin execute '/PromoteDonator <playername>', and have their DonationLeft value set to 61 days greater - that is, two months - than the server's current DonationLeft value, which increments daily.
61 days, or two months later, this value has decreased to 0.
For the expiration command, you'd need to do '/scoreboard objectives add temp dummy'
To view the amount of days remaining, the following command could be used:
This will tell the player the amount of days they have remaining. This can also be modified to display the hours and minutes remaining. I hope this helped.
-
View User Profile
-
Send Message
Posted Jun 7, 2016I have a Request too,
Simple and easy to use: Creating Lists from Ingame or in config
For Example (Peter) types:
/list add (list) Hey Whats up!
And (Anna) Types:
/list add (list) Hello There.
Now John types /list clear (player) to remove all Inputs inside the a list of a Player or John types /list clearall (list) to remove all Inputs inside a list of all Players
-
View User Profile
-
Send Message
Posted Jun 7, 2016@KyBLKuBA
+
-
View User Profile
-
Send Message
Posted Jun 7, 2016I know you must be bombarded by questions and requests, but I'm back again to request a relatively small feature.
It would be great if we could have a variable for the full stack data in hand, or, even better, for any inventory slot.
For example, $stackdata%35% to input the following:
{id:"minecraft:stick",Count:1b,tag:{ench:[0:{lvl:2s,id:19s}],display:{Name:"§7Grandmas Walking Stick"}},Damage:0s}
If the player held a Grandmas Walking Stick in Slot 35.
This would allow us to create auction, trade and other item-related features that, to my knowledge, can't be created currently.
Thanks in advance.
EDIT:
Oh, I completely forgot, Grandmas Walking Stick is an item from SF, having the above NBT on it.
-
View User Profile
-
Send Message
Posted Jun 7, 2016Hello! I would like to ask is there a way to compare or do maths on dates?
I am planning on showing donators how long they have left on their donation from buycraft, so far I have got buycraft to save the players Donation date for their rank into playerdata, this is a good start, and I can edit the format of the date in the scheduler to match it, I can display both this information, what I want to do is display how many days left they have until their donation expires! Since we can get the current date and we have the donation date, we should be able to do this? All ranks last for 2 months, the format for the buycraft donation date is 06/06/16, if a donation lasts 2 months we need to add on 2 months to this donation date to find the expiry date, once we have this we can check $todaydate to see how many days away it is. I just cant figure out how to work with dates in mycommand?
-
View User Profile
-
Send Message
Posted Jun 7, 2016add $sender or something, when i have a
instead of $player will show the player's name, which it sends
-
View User Profile
-
Send Message
Posted Jun 5, 2016Hey, I want that normal people on my server can open an iconmenu by rightclicking an iron ingot. But they can't do this :'(
Normal players have the permission - mycommand.item.IRON_INGOT.use
Im using MyCommand v5.3.3 and MC-Version 1.8.8.
\_(°°)_/
-
View User Profile
-
Send Message
Posted Jun 4, 2016@boidyluke
Write multiple commands, each Progression = One Command
But i think there was another way, ill study it again after i slept
-
View User Profile
-
Send Message
Posted Jun 4, 2016@Ivanpro okay i understand . so one more thing i wanna ask can i make a command that allows a player to charge another player a item that he or she loses on command?
-
View User Profile
-
Send Message
Posted Jun 4, 2016Hey peeps, I'm running a quest server and would like to visually show time remaining to complete a quest in the actionbar, I have the script set up but wondered if anyone knew how to stop a command while its running, basically when a player completes a quest that plugin send out commands that I define, I would like one of those commands to stop the mycmd-timer command that I made otherwise it just keeps counting down after they complete the quest :S
-
View User Profile
-
Send Message
Posted Jun 4, 2016@Ivanpro That seems to work, thanks for the quick reply. Keep up the awesome work!
-
View User Profile
-
Send Message
Posted Jun 4, 2016@CyanBlitz
For now, no. There is just some extra event, like death,kill, kick ecc. Something to specific like take damage can't work as intented without a deep implementation.
@maxito43
You are probably using the wrong item name. You can type this command for get the correct name of the current item in the hand "/mycmd tell $iteminhand". Maybe you are looking for INK_SACK. Check with the command above anyway.
-
View User Profile
-
Send Message
Posted Jun 4, 2016It seems we can't add some items to icon menu's. For example dye's don't work, or mushroom_stew. Whenever I try to add it I get the error in my console:
04.06 13:44:01 [Server] INFO An error occurred on command drugs 04.06 13:44:01 [Server] INFO Impossible create this ItemStack : DYE 04.06 13:44:01 [Server] INFO maxito43 issued mycmd command ID(20) /drugs
It looks like this in the commands.yml:
- '9:DYE:7:/WeedButter:&aWeed Butter:&2DrugRun Recipes (Click me for recipe)'
I'm pretty sure we're using the right item names. Hope this can be fixed or tell me if I'm doing something wrong!
-
View User Profile
-
Send Message
Posted Jun 4, 2016I was wondering can you create an event command to happen to a player by using a command that when type makes the other player takes damage or gets poison
-
View User Profile
-
Send Message
Posted Jun 4, 2016@Spark89
Try with "executefor: ONLINE_PLAYERS" :
-
View User Profile
-
Send Message
Posted Jun 3, 2016Guys, what would be the easiest way to teleport all players with %PlayerData%bunny=1 but not the players with %PlayerData%bunny=0 ?
-
View User Profile
-
Send Message
Posted Jun 3, 2016@GodsDead