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
Does anyone know where I could find other peoples mycommand creations, I'd like to find a way to make a /tpa /tpaccept mycommand, as im trying to reduce the number of plugins on my server (i've pretty much replaced everything else essentials adds).
In reply to sp1dro:
Atm, I guess there's nothing but those help pages to work with. If you have the time to read and experiment with them, I think you'd be fine.
But yeah Ivan should totally make a discord for this so we could share eachothers work :D
In reply to Forge_User_57031538:
I tried and got super confused super fast, and yeah a discord would be neat
Hi! So we're trying to make a private message command that plays an alert sound and has a cooldown. Like this:
'hey':
command: /hey
type: RUN_CONSOLE
runcmd:
- $Script$%if%$CheckPlayerStatus%$arg1%isOnline%==true
- /execute at $arg1 run playsound block.bell.use master $arg1 ~ ~ ~ 10000 2
- /execute at $arg1 run playsound entity.experience_orb.pickup master $arg1 ~ ~ ~ 10000 0.5
- /execute at $arg1 run playsound entity.evoker.prepare_wololo master $arg1 ~ ~ ~ 10000 2
- /tellraw $arg1 "&8[&7!&8] [&e$player &8-> &bMe&8] &b$multiargs"
- /tellraw $player "&8[&7!&8] [&bMe &8-> &e$arg1&8] &b$multiargs"
- $Script$%else%
- $text$&cThat player is not online.
require_all_arguments: true
error-message: "&cUsage: /hey <playername> <message>"
cooldown: 30
register: true
permission-required: false
However there are 3 problems:
1. Players themselves can write mycmd placeholders to that command so it displays them. E.g. "/hey Player $oplist $wgregionname $world" actually displays those placeholders. Only the original written text is supposed to get displayed.
2. "require_all_arguments" is true and yet for some reason the error message does not appear when the player leaves the command blank. Only the $Script$%else% message gets displayed.
3. Cooldown will start even if someone types the command incorrectly or to an offline player. It would be optimal for the cooldown to start only when the player types the command correctly to an online player.
Are there any ways to fix these problems on this command? If not, would you be willing to tweak the plugin? Any help would be highly appreciated!
In reply to Forge_User_57031538:
require_all_arguments works per-line. An alternative can be "required_args: 1", where if you type only "/hey" it shows the error.
The placeholders are a tricky question, maybe i can add something who's replace only the "$args" for example. Otherwise, i should add a permission for every placeholder and it can only get the replace process more heavier.
For the cooldowns i added a command /mycmd editcooldown to manage them. Run it in the "error phase" of the command, through the console. Ex. "$RUN_CONSOLE$/mycmd editcooldown $player command_name 1"
In reply to ivanfromitaly:
Thanks a lot for your help! Got the cooldown and error-message working.
And with the placeholders, sounds good. Whatever you think is the best solution. Anyway the command as it is now can already be given for use to our staff which was the primary idea. But I'm glad if we could get it working so that we could give it to our players too :D
Hello! I would like to know if there is or is it possible to add an "error message" option as a command.
For example, if a player misspells the command, instead of receiving a message defined in "error-message:", a command will be executed, such as an "error-command:".
I really hope you understand and answer, I thank you in advance, you do a great job.
Im trying to add a enchanted_book to the right_click_interaction but it doesnt work and I cant create a command. It says the target block not recognised. but everything is correctly set.
Is it possible to make a command that only runs on a player's first join? Also, an NPC with colliding off still can be pushed around.
Hi, noticed that this placeholder doesn't work.
Always NoData response.
%mycommand_playerdatafor_<player_name>_<variable_name>%
In reply to jotaro3235:
An example of how you're using it? It should be used in this way : %mycommand_playerdatafor_jotaro_money% , and works only with PlaceHolderPAPI installed.
In reply to ivanfromitaly:
Oh, I checked it works. It seems the problem is in the nickname, if my nickname is _Jotaro_ or Jo_taro then it will be NoData.
In reply to jotaro3235:
yeah it can be possible. I remember to have fixed something like that, but maybe only in the variable name. Because the "_" in PAPI split the sector. It's easy for me determinate the variable, because i can get everything after the name and say it is the variable. But for the name not so easy. I should have left the <> character to open and close the start and end of the name. I'll eventually if i can do something.
Helllo,
I'm looking for an API to be able to invoke certain commands by their names. Any chances it could be added any time soon?
Thanks,
brc
Please help! How can i add a player the perm to do a custom cmd?
Thank you!
I have a problem in my server, Im trying to start my server with mycommand and this happen
I made a clear start up, I droped the mycommand plugin in the plugins folder, after that i went into the server to reload this one and see if the plugin works but... No, I need help.
Pastebin of all the log, isn't too much i only tried to install the plugin
https://pastebin.com/iu1p7q7Q
Thanks for the help
(Sry I am Russian)
How change player's variable 10.0 to 10, without zero
example:
player send command /money bal
in chat: Ur balance is: 228.0
but i need:
player send command /money bal
in chat: Ur balance is: 228 (without zero)
Console cannot run the logging commands. Also, you should get a Discord server for MyCommand, as it would make getting support and everything so much quicker and easier.
Hello, after my call_url "problem" it's me other time...
This time it's for the cooldown for the customs commands.
I would like to save the cooldowns in the yml file to save it after a restart of the server bug it doesn't save anything.
The DEBUG part of the config is:
DEBUG:
GAME: false
CONSOLE: true
DISABLE_PERMISSIONS: false
USE_UUID_FOR_PLAYERDATA: true
USE_NAME_INSTEAD_OF_ID_IN_THE_PERMISSION_NAME: true
USE_THE_UPDATER: true
SAVE_PENDING_COOLDOWNS: true
USE_AT_SELECTORS_PLACEHOLDERS: false
ROUND_DOUBLE_DECIMALS_AT: 2
Anybody knows how to put it saves on?
Thank you
Hey,
i have several questions and i hope someone can help me. Thanks!
#1 Is it possible to create a own command and user can use them without the permission?
Example: "/money add @p 100" - users cant this for normaly; but if i create "/money4me" in mycmd is it possible?
#2 In minecraft commands will be suggest commands, but not the my-cmd commands. Can i add this?
#3 Is it possible to hide message from original-commands? Example: "/weather set clear" in Chat "@P changed the weather in world". Now i did my own command: "/good-weather" - can i hide the broadcast?
Thaaaanks