- Minecrafter.Форум
- Решено Нужна помощь с плагином MyCommand
- Volnistik_Pro
- kpachiy
- MixMouse
- Volnistik_Pro
- MrFluffy
- Volnistik_Pro
- MrFluffy
- Volnistik_Pro
- MrFluffy
- Volnistik_Pro
- Поиск по форуму
- Наш Discord
- Наши друзья
- Активность пользователей
- Последние ответы
- Последние темы
- топ 10 репутаций
- Статистика
- Пользователи:
- Категории:
- Сообщения:
- Онлайн
- Report Content
- Block Member?
- Скачать плагин MyCommand | Создавайте свои собственные настраиваемые команды на сервере Minecraft 5.7.1
- Описание плагина MyCommand:
- Особенности плагина MyCommand:
- Команды плагина MyCommand:
- Права плагина MyCommand:
- Как установить плагин MyCommand?
- Скачать плагин MyCommand
- Bukkit
- MyCommand
- Bukkit Plugins
- Pages
- 1. Configuration and Example
- Table of Contents
- Configuration and Example:
- INFO : Deprecated commands and FAQ.
- How to configurate and examples
- How to make a TEXT command type :
- Creating a BROADCAST_TEXT command type:
- Text Styles — Centered text.
- Broadcast message inside a define range :
- Create Aliases / Shortcuts commands:
- Using arguments in a shortcut commands:
- Make a command shortcut with $multiargs:
- Require all arguments?
- Specific number of arguments? use required_args.
- Custom error message & permissions:
- Register Real commands and the Tab Completer
- Create permission based tab_completer suggestions:
- How to use condition inside the tab_completer.
- Use REGEX to filter what the user can type-in
- Block commands with a Permission (also Vanilla Commands)
- How to make delayed commands/pause
- How to set Warmups and Cooldowns
- Custom Cooldown message :
- Economy features
- Perform a command by the console from a player sender. RUN_CONSOLE
- Using the placeholder $RUN_CONSOLE$ (5.6.0+)
- Message Tooltip/Suggest Command with RAW_TEXT
- LIVE_CHAT . Make the chat a live prompt.
- Launch randomly a command choosen from a list
- Launch a command as operator
- Setup MYCMD Button, Pressure Plate, Lever, Door , Detector Rail or your Customs
- How to disable a command only on certain input.
- disable_on and disable_on_length
- How to use allowed_worlds
- Repeat multiple times text or commands.
- How to use «$world=%world_name%» in RUN_COMMAND Type
- How to use «execute_mode» command field.
- How to use «executefor» command field.
- Custom Logger $log$ (file.log) 5.6.0+
- In-Game Items (Itemset)
- Make a MYCMD Sign
- Holographic Text
- IconMenu Commands
- Scoreboard Commands
- Http Get Request (CALL_URL)
- Executing BungeeCord Proxy commands (5.6.0+)
- BungeeCord Teleport
- Use /lmcmd Commands
- Type & PlaceHolders
- Page Moved, check the NAVBAR on the right ->
- Playerdata feature and MYSQL support
- MYSQL SUPPORT
- Leaderboard command type for playerdata
- WorldGuard Region support
- BarAPI / BOSS BAR Features
- Setup the Scheduler
- Spout Plugin Features
- Make a notification «spout-notification» type commands:
Minecrafter.Форум
Найди ответ на любой вопрос
в мире Minecraft
Главная › Форум › Сервера › Помощь › Нужна помощь с плагином MyCommand
Решено Нужна помощь с плагином MyCommand
Volnistik_Pro
Помогите, как сделать команду, которая будет выдавать креатив на 5 секунд?
kpachiy
Хм..Вроде никак,но попробуй в гугле вбить может поможет…
MixMouse
Скачать плагин Command Timer, в MyCommand не знаю сори
Volnistik_Pro
А как это сделать? Если что я имею ввиду ты прописываешь команду гм1 активируется гм 1 но через 10с обратно ставится гм0 на автомате.
MrFluffy
Если тебе нужно на 10 секунд то вот
– ‘$delay$$text$&4Осталось 10 секунд’
– ‘$delay$$text$&4Осталось 9 секунд’
– ‘$delay$$text$&4Осталось 8 секунд’
– ‘$delay$$text$&4Осталось 7 секунд’
– ‘$delay$$text$&4Осталось 6 секунд’
– ‘$delay$$text$&4Осталось 5 секунд’
– ‘$delay$$text$&4Осталось 4 секунды’
– ‘$delay$$text$&4Осталось 3 секунды’
– ‘$delay$$text$&4Осталось 2 секунды’
– ‘$delay$$text$&4Осталось 1 секунда’
Volnistik_Pro
Скинь в точности ка кэто должно быть в плагине, а то он у меня 100000 ошибок в консоли выходит.
MrFluffy
Volnistik_Pro
А у тебе он работает? Скинь пж готовый конфиг
MrFluffy
На скринах выше робочая команда, я проверял
Volnistik_Pro
Скинь просто готовый конфиг пожалуйста. А то у меня ошибки были
Тема «Нужна помощь с плагином MyCommand» закрыта для новых ответов
- Публично
- Все участники
- Мои друзья
- Только я
- Публично
- Все участники
- Мои друзья
- Только я
Поиск по форуму
Наш Discord
Наши друзья
Активность пользователей
Zabroot написал в группу
Последние ответы
Последние темы
топ 10 репутаций
MrFice 264 репутаций Raidark 100 репутаций Lux 49 репутаций kosnag 34 репутаций WhiTe-Yak 20 репутаций wavez 16 репутаций MixMouse 13 репутаций ukrsalo 12 репутаций ImilkoAB 12 репутаций Asakura-Yo 9 репутаций
Статистика
Пользователи:
Категории:
Сообщения:
Онлайн
Report Content
Block Member?
Please confirm you want to block this member.
You will no longer be able to:
- See blocked member’s posts
- Mention this member in posts
- Invite this member to groups
- Message this member
- Add this member as a connection
Please note: This action will also remove this member from your connections and send a report to the site admin. Please allow a few minutes for this process to complete.
Источник
Скачать плагин MyCommand | Создавайте свои собственные настраиваемые команды на сервере Minecraft 5.7.1
Описание плагина MyCommand:
Не нравятся команды которые идут по дефолту в майнкрафте, или хочешь сократить любую команду на сревере Майнкрафт? Этот плагин тогда точно создан для тебя. С ним всё это возможно. Более подробно смотри чуть ниже.
Особенности плагина MyCommand:
- Делайте новые команды!
- Запустить другие команды в новом виде
- Выполнять несколько команд за одну
- Отложенные команды с настраиваемой паузой
- Запускайте команды с любыми предметами, блоками, табличками, книгами и жителями деревни.
- Различные функции для кастомизации команд, такие как переменные, сценарии (if-else) и многое другое.
- Консольная поддержка
- Поддержка экономически (требуется Vault)
- Все функции легко настраиваются
- Нет ограничений на количество команд с поддержкой нескольких файлов.
- Настраиваемые команды IconMenu (ChestGUI), ActionBar, BossBar, Hover / ClickableText, Title и Scoreboard.
- Разрешить выполнение команд в различных обстоятельствах (для каждого мира, для регионов и т.д.).
- Пользовательская база данных игроков, где вы можете хранить все, что хотите, чтобы еще больше персонализировать свои команды. Поддерживается база данных SQL.
- Функция BungeeCord, планировщик, запросы Http, события подключения/выхода/смерти .
- Поддерживается автозаполнение команд (завершение табуляции). (register: true)
- . И многое, многое другое .
- Есть поддержка Vailt и PlaceholderAPI
Команды плагина MyCommand:
/mycmd — Показать этот список команд в игре
/mycmd list — Показать все созданные пользовательские команды
/mycmd check — Показать информацию о пользовательских командах
/mycmd-reload — Перезагрузите файл (ы) конфигурации
/mycmd-edit — Внутриигровой менеджер конфигурации
/mycmd-blockset — Запускать команду по блоку
/mycmd-itemset — Запустить команду по элементу
/mycmd-runas — Запускать команды от имени другого пользователя или с консоли
/mycmd-scheduler — Команды планировщика.
/mycmd -variables — Сделать пользовательские переменные
/mycmd -playerdata — Управлять playerdata.yml
/mycmd-book или /mycmd book — Команды запуска из книги
/mycmd-signs — Выполнение команд по табличкам.
/mycmd tell — Отправить сообщение самому себе (в целях тестирования)
/mycmd btell — Отправьте широковещательное сообщение всем игрокам.
Права плагина MyCommand:
mycommand.mycmd — Доступ к команде /mycmd
mycommand.reload — Доступ к команде /mycmd-reload
mycommand.edit — Доступ к команде /mycmd-edit
mycommand.block.set — Доступ к команде /mycmd-blockset
mycommand.item.set — Доступ к команде /mycmd-itemset
mycommand.runas — Доступ к команде /mycmd-runas
mycommand.scheduler — Доступ к команде /mycmd-scheduler
mycommand.variables — Доступ к команде /mycmd-variables
mycommand.playerdata — Доступ к команде /mycmd-playerdata
mycommand.book — Доступ к команде /mycmd-book-signs
mycommand.sign.set — Доступ к команде /mycmd tell
Полный список команд и прав по плгину доступен на официальной странице — Жми на меня
Как установить плагин MyCommand?
- Скачайте плагин.
- Возьмите скачанный файл и перенесите в папку plugins вашего сервера.
- Перезапустите сервер.
- Готово.
Скачать плагин MyCommand
Скачать версию 5.7.1 для майнкрафт 1.17.x — 1.8
Скачать версию v5.6.9b для майнкрафт 1.16.5 — 1.8
Скачать версию v5.6.9 для майнкрафт 1.16.5 — 1.8
Скачать версию v5.6.8 для майнкрафт 1.16.4 — 1.8
Скачать версию v5.6.7 для майнкрафт 1.16.4 — 1.8
12 172
NPCAuctions — был создан как альтернатива всем другим плагинам для аукционов, которые сейчас существуют. Что отличает
Один из лучших плагинов на генерацию мира майнкрафт, который позволяет создавать миры из схем, неограниченных размеров
Мощный и пожалуй лучший плагин на меню для сервера майнкрфт.
Мини-игра BedWars — наверно самая популярная мини-игра, ведь она есть почти на каждом сервере MineCraft. Суть этой
Цель этого плагина — добавить новые функции, которые не включены в Dimensions. Все, что может сделать нижний портал,
ChatControl Pro — это наиболее полное и настраиваемое решение, которое поднимет уровень вашего сервера на новый
Источник
Bukkit
MyCommand
Bukkit Plugins
Pages
1. Configuration and Example
Table of Contents
Configuration and Example:
INFO : Deprecated commands and FAQ.
Why my command show’s up «red» in the game chat?
Your command shows red or as a «unknown command» because they need to be registered to become «white». Use the command field register: true to do that. This also allow’s you to use the tab completer on that command or run it from another Plugin.
A server restart is needed for registered commands to become effective at 100%.
A note for ancient plugin versions users (probably 0) older than the 5.0.0 (Released in 2014), the command names inside commands.yml needs to be called in a numeric ascending order. 1, 2, 3 ecc.
How to configurate and examples
How to make a TEXT command type :
The TEXT command type will show, to the player who runs the command, a determined text in his gamechat.
The text who is going to be displayed is placed, in this case, under a command field called «text». Check the example to see how is done :
It’s recommended to put any text line in the command file.yml inside an apex or quote character. This can help you preventing parsing errors. Example :
Creating a BROADCAST_TEXT command type:
Same as the previous example with the TEXT command type, the BROADCAST_TEXT, works in the same way, but the output of it change, and the text of that command will be sent to every player connected to that server.
(5.3.0+) A supplemental feature for the BROADCAST_TEXT can be the command field :
broadcast_message_permission_node
Use this one if you want to send the broadcast message to only certain user. (Users with that given permission).
To do so, add the following command field under the interested BROADCAST_TEXT command type :
Text Styles — Centered text.
A built-in feature inside MyCommand to be used with both the TEXT and BROADCAST_TEXT command type is the centered text.
You can automatically auto-center the text of your command by using the «text_style» command field.
Follow the example to see how:
Broadcast message inside a define range :
Use the command field «broadcast_radius: 100» to make a message to broadcast only to the player inside the declared range (In this case 100)
You can use it with BROADCAST_TEXT command type or also with the «$broadcasttext$» placeholder for runcmd.
Create Aliases / Shortcuts commands:
It’s possible make «aliases» in 2 way. The first is using the «ALIAS» Type, the other one, using the more flexible and always recommended way «RUN_COMMAND» command type.
As a result, those two commands, will return both with /list as output :
Using arguments in a shortcut commands:
This is possible only with RUN_COMMAND command type. Make a new command and place the $arg1 where needed, and it will be replaced with any argument typed in the game chat prompt.
For example, if you type «/vip Name1» using the command in the example below, the command will replace the «$arg1» with «Name1». In this way, the final output will be «/pex user Name1 group set Vip».
You can use multiple arg placeholders «$arg1..$arg2..3..ecc» in a command, just having attention to put those placeholder in ascending order.
P.S: Very old image 😀
Multiple commands with args:
Like the previous example, but with multiple $arg(s)
Make a command shortcut with $multiargs :
The $multiargs placeholder, gets all arguments typed in a command. If you don’t need put «$arg1, ecc»in a specific position, use this one instead.
Eventually, you can put the $multiargs after some $arg’s. Example:
In this way, $multiargs prints only the arguments typed after $arg1.
Require all arguments?
You can choose if your command need to type all arguments using this command field :
Example : If your command have «$arg1..$arg2 and 3» and you type /command one two, the plugin block you the execute it, because he need all the 3 arguments, so /command one two three.
Specific number of arguments? use required_args.
Differently from «require_all_arguments», this allow you to add the «check», on every command type, and give you the ability to be more specific. The «automatic» system in runcmd, works per line, so it’s not very efficent, this is a good replacment.
In that way, the command starts only if the player write atleast 2 arguments. Example «/command do something».
Custom error message & permissions:
You can manage the error message (invalid args) and the permission (error and node) with the «error-message:», «permission-node:» and «permission-error:» command field. Put this two parameter in the your command and customize it like in the example :
By default all commands use permissions.
You can manage it with permission-node and permission-error message, but it’s also possibile disable it by command, using the «permission-required» command field. Put it on false, if the command must not have permissions.
So, here an example :
By default, if you don’t set any permission, the plugin put one automatically on it.
The default permission depends on what configuration you are using.
On the newer version of the plugin, the default permission is «mycommand.cmd.command_name», where «command_name» is the first section of the command. If you see the example here above, the command name is «no_permission_example», so the final permission become: «mycommand.cmd.no_permission_example».
Otherwise, on older plugin version ( 4.0.0), you must use the item name instead of the item ID. So, if in the previous plugin version «itemcost» line is ‘4:5’, in the newer become «COBBLESTONE:5».
If you want, you can change the default message using success-message or error-message field. Example:
Register Real commands and the Tab Completer
Why register a command?
Registering a command, give you some vantages, like the ability to perform this new created commands in another plugin.
Another plus is, the Tab Completer. This is available only if the command is registered.
So, how to register a command then?
You can do that, by adding the command field : «register: true» or «registered: true» inside the command you want to register.
Another one, this time with the TabCompleter
In this example, you can see the TAB Completer. This function works only if the command is registered. Like the example, if you type in the game chat «/gamemode» and then press TAB, it will return to you with the tips inside the tab_completer command field, so «survival, creative ecc».
By default, if you don’t set the tab_completer field in the command, when you press TAB it will return with the list of the connected players. For now, you can’t have both.
Add multiple aliases to a registered command :
You can add easily multiple aliases to a registered command by placing them under the «aliases» command field. As the example below :
P.S The command field «aliases» is completly different from the command type «ALIAS».
Advanced use of the TabCompleter (>5.5.1) :
tab_completer can be customized by positions following the scheme here forward.
There are special PlaceHolder for the tab_completer only : like $player_list for example — (It returns with a list of the online players)
In this example instead, every position of the command typed in the chat prompt, will return with different informations. ALWAYS use numbers in an ascending order 1,2,3. .
Example, if in the chat i have «/manageuser _» where «_» is the prompt position, the auto completer above the chat will show me «set , add and remove». Again, if i have «/manageuser set _», in the following case, i will have the list of the connected players in the server, because the placeholder «$player_list» does this. And so on.
Create permission based tab_completer suggestions:
It’s possible show different results by the user permissions.
Use the parameter
to split the suggestion to the permission node area.
How to use condition inside the tab_completer.
Use this syntax :
on the second position, to show that option only if the previous selected word in position 1 is give.
tab_completer_display_mode:
by default is «CHARACTER_BASED», that means when you start typing in the word you want, the suggestions adjust to that word accordingly.
use SHOW_ALL to get everything all togheter regardless of what the user type in.
P.S.You can’t register (REGISTER : TRUE ONLY) commands with spaces in the name.
command: /test example (WRONG) -> command: /testexample (CORRECT)
REGISTERED commands can’t be created with multiple arguments in the command field, only non-registered ones can.
Always register only the root command. If you want to have subcommands of that one without using the scripts, leave the unregistered.
Use REGEX to filter what the user can type-in
By default from MyCommand 5.6.8+ a global regex filter is active. You can change it in config.yml
if you want to add for example, the /, just put it as «^[-a-zA-Z0-9&._ /]+» and so on.. Check on internet for better patterns.
If you don’t want to use it, put USE on false or PATTERN: «.*» and everything will pass.
Per-Command regex filter :
Customize the allowed characters a player can type into that command.
Add those fields under the interested command to apply the effect.
Block commands with a Permission (also Vanilla Commands)
Use the «ADD_PERMISSION» command type to add an extra permission to the interested command.
Example you want to block the /pl command from being showed? Do it in this way:
How to make delayed commands/pause
You can use the $delay$ prefix, only in the RUN_COMMAND command type.
To use this feature, just put $delay$ as a prefix of the command (Check the example below)
How you can see, there is a command field called delaytimer. Use it to set how many time it needs to elaps when $delay$ it’s used. The number (by default) is express in seconds.
So » delaytimer: 1″ means you will have 1 second of pause.
If you need more accuracy, it’s possible to change the delaytimer format from seconds to ticks.
Using delaytimer_format in the command fields, you can switch from SECONDS to TICKS
(20 server Ticks = 1 second)
TIP: You can use $delay$ alone in a row, without the needs of having a command or a function with it.
From the version 5.3.3 (or newer), you can use a custom timing on each «$delay$» prefix.
This value must be written only in » server ticks». (20 ticks = 1 second).
How to set Warmups and Cooldowns
Cooldown or warm-ups for custom commands (ONLY commands created with MyCommand)
Instead, if you need to put a cooldown or a warmup to another plugin command, see below :
1. Put «WARMUP» , «COOLDOWN» or «WARMUP_AND_COOLDOWN» in the «type» command field.
2. Write the command where you want apply the warmup or cooldown typing it in the «command» field line.
3. And set the time (in seconds) with «delaytimer» line.
See the example:
Cooldown example: (If you need that, you can use also «success-message» with the cooldown type)
Warm-ups can be canceled on the move event. Put true on MOVE_LISTENER in the main config. (config.yml)
(It’s disabled (false) by default, once changed, restart the server to make it effective )
WARMUP_AND_COOLDOWN apply both the effect to one command
Cooldowns can be stored in a yml file to not lose them when the server get restarted or stopped.
Use DEBUG.SAVE_PENDING_COOLDOWNS in the config.yml for manage this function. (true/false).
Custom Cooldown message :
cooldown-message: «wait $days$hours$minutes$seconds second more» Allows you to costumize the cooldown message
On older plugin version instead of $seconds ecc, there is only %s as placeholder.
You can edit the default one in language.yml
COOLDOWN1: «&cWait $days$hours$minutes$seconds before you can use this command again»
Remove the bypass message to players who have the permission :
(Old version of plugin
Economy features
To use the economy features with mycmd commands, you need an economy plugin and the Vault plugin.
The use it’s simple, just change the config line «cost» in the interested command.
This example withdraw 5$ from the player sender.
If you need to be more specific, use a decimal value, by placing the dot character. «.»
To allow players to use the command, also if they don’t have the required money to do that, you can by allowing the debts. Change the «allowdebit:» to «true» in the main config.yml.
Can i add the economy cost to another plugin command? Yes, create a new command and set the type to ADD_COST. Example :
PlayerData Economy 5.6.8 :
MyCommand can now be used as a basic Economy Plugin, using a playerdata value as storage. You need Vault to make it working.
What’s the point of that? If you don’t have an economy plugin, you can turn this on, and other plugin who use vault to draw money, they’re automatically going to draw «money» from mycommand.
Configure it from config.yml
Perform a command by the console from a player sender. RUN_CONSOLE
Same as RUN_COMMAND type, but all the commands, are performed from the console. This allow’s you to run command even if the sender isn’t in possess of the necessary permissions. Take in mind who not every command works from the console, and not every command act as the in-game counterpart.
And yes, be aware of the fact that if you put «/op $player» the player will actually get OPPED, so caution.
One example of use:
Using the placeholder $RUN_CONSOLE$ (5.6.0+)
The $RUN_CONSOLE$ prefix. Allow’s you to run command by the console, per line, where required.
Message Tooltip/Suggest Command with RAW_TEXT
You can use RAW_TEXT commands for suggest commands and hover text over a message. This command type works only on Spigot servers. (No CraftBukkit).
Create your command like an normal TEXT one, like in the example, and use the «;» char for split the Chat Text from the Hover and the Suggested Command.
So : MESSAGE ; HOVER MESSAGE ; SUGGESTED COMMAND.
If you want, you can create commands with only the Hover message, just removing the ;suggested part. Example :
MESSAGE ; HOVER MESSAGE.
You can change the Click Event from Suggest to $RUN_COMMAND$ or $OPEN_URL$ For do this, put this 2 string at the start of the your command, like the example above.
Change the type to BROADCAST_RAW_TEXT, for send the message to every connected player.
how i can create 2 or more different hover/click part in one line?
- You can do that, just splitting them with the as separator.
- Example :
Can i have multiple line in the hover part?
- Yes, you can split multiple lines in the hover part with as separator.
- Example :
- Also, in the hover part, you can use this 2 placeholder to show an Item or an Entity. ($SHOW_ITEM$ and $SHOW_ENTITY$)
- Example «Hover on me:$SHOW_ITEM$STONE»
Use %skip% in the HOVER PART of a RAW_TEXT to prevent the popup to show at all.
LIVE_CHAT . Make the chat a live prompt.
Basically the chat become a prompt. Until the player gives the correct answer it will asks for it. If correct it will launch a command.
(Note: runcmd here is working only as a list, it hasn’t the features of a RUN_COMMAND.) Use it in conjunction of execute_mode to be able to concatenate more commands and more questions.If you want to use this feature, you need to enable the «CHAT_LISTENER: true» in the main config.yml. Done that, restart the server.
Optional LIVE_CHAT features:
- answer can be «*», in this way can accept any value (if you just want to use it as a prompt.
- escape-parameter: «quit» , to add one more word to quit/escape from the LIVE_CHAT.
- exit-message: «You’ve left the prompt» Costumize the message when leaving.
- incorrect-answer: «&cIncorrect answer. Type &4close &cto quit this prompt»
Launch randomly a command choosen from a list
Use command type : RUNCOMMAND_RANDOM or RUN_CONSOLE_RANDOM to run a randomly choosen command from the runcmd list.
Launch a command as operator
This command type give a temporary OP status to a sender player for executing a command
(USE AT YOUR OWN RISK)All the times MyCommand give the op status to a player, a log in the console is written. For extra security, an extra task get launched every time, for remove the OP status after some seconds (just in case, if you made mistake with the command and give him permanent op status).
Setup MYCMD Button, Pressure Plate, Lever, Door , Detector Rail or your Customs
Type /mycmd-blockset in game chat to see the help menu.
1. Place your button, pressure plate or any block you have enabled in the config.yml
2. Look at the target block you want use and type /mycmd-blockset create
3. If created with success, you can now add commands with /mycmd-blockset add
4. That’s it. test if it works by interacting with it.Other commands:
— Show block info with: /mycmd-blockset check
— Remove all commands from a block : /mycmd-blockset delete
— Remove a single command from a block : /mycmd-blockset remove
— Switch type from Player/Console : /mycmd-blockset switchFrom MyCommand 3.9.0 and above, you can manage the block name id. Check in the config.yml.
You can manage what blocks can be used from the players with the command:
How to disable a command only on certain input.
disable_on and disable_on_length
disable_on :
This feature allow’s you to disable the command if the typed-in command match the one inside the «disable_on» list
In the example here above, if the player type-in /pet, the original pet command will get replaced as «/shop pet».
Now, assume we need to disable this command to not run «shop pet» in determinate circumstance, you can do that with disable_on. In this way, if the player type in «pet summon creeper», the original command get executed.
disable_on_length:
With disable_on_length: 1 for example,
Having as example the /ignore command, if the user type only «/ignore«, MyCommand will execute the command created with MyCommand.
With both the function, you need to use them in unregistered mode. So register: false;
How to use allowed_worlds
You can use the «error-message» line for put an custom error.
Repeat multiple times text or commands.
Put ‘%Repeat%n% before the command/text.
How to use «$world=%world_name%» in RUN_COMMAND Type
How to use «execute_mode» command field.
If you want made an command performable only from several source,you can use this function.
There are multiple types, here listed :
Possible CONSOLE_ONLY Example :
Creating an reward command for all players, triggered by BuyCraft. The eco command need to be executed from the console (permission reason).
Exempt players from the execute_mode block:
You can use custom permissions to allow players to run a specific command execute_mode command :
How to use «executefor» command field.
SENDER (Execute the command only for the sender)
ONLINE_PLAYERS (Execute the command for every player online)
WORLD_PLAYERS (Execute the command for every player in the same world of the sender)Basically works with every command type, except ADD_PERMISSION
(By Default every commands it’s on SENDER type) (maybe, some of this options can made some loops if used wrongly.)Custom Logger $log$ (file.log) 5.6.0+
It’s now possible save logs text in separate log file. Just use log_filename: «filename.log» like the exampel here below, and the $log$ message will get saved in «/plugin/MyCommand/logs/filename.log»
In-Game Items (Itemset)
How to Use : (>5.1.4+)
- First of all, active the item event with «/mycmd-itemset on».
- So, get an item in your hand and type «/mycmd-itemset add» for add it to active item(s) list.
- Now if you click left or right mouse button it’s possible read in chat about the item without command in it.(If you don’t want this message put «empty_message» field in itemset.yml on false.
- Now for add something on the activated item, type, for example, «/mycmd-itemset right /list». In this case if you use the right click of the mouse, the server runs the command «/list» for the player who send this action.
- Same thing with «/mycmd-itemset left /your command», but in this case the command will be performed only if you use the left button of the mouse.
- You can add multiple commands in one line using the «;» char between each command. Example : /command1;/command2
- And that’s all for made it working.
- Now if you need to run this command only on a specific item with a specific name, you can set an name on the your item with the command «mycmd-itemset name NewName».
- For more command(s) type «/mycmd-itemset» in-game
How to Use : (Old
Make a MYCMD Sign
On Sign you can :
- Execute the command by right-clicking on sign.
- Show the messages you put on the sign on game chat.
- How to Use :
Put [MYCMD] in first line of sign
In Line 2,3,4 insert your /command or textFinal Result :
You can change the sign header from config file : (default) signheader: [MYCMD]
From the 5.0.0 version, you can create lists of commands with the /mycmd-signset command ! Create a new list,put the command in it,and when you create an sign,put the name of the created list on the 2°,3° or 4° line of the sign.
Holographic Text
This feature will spawn a floating text in front of the player sender.
Command type : HOLOGRAPHIC_TEXT and BROADCAST_HOLOGRAPHIC_TEXT . Use the second one to show the text to every connected player.
delaytimer, adjust the time the hologram will stay up.
With Mycommand 5.6.4 there is a new command «/mycmd hologram» that’s allows you to spawn permanent holograms in the server and save them in a database, and even run command through them.
IconMenu Commands
MOVED, Check the navbar ->
Scoreboard Commands
INFO: Older version of the plugin (
Http Get Request (CALL_URL)
Use this function for send a GET request to a web page.
Basically this function can help you retriving datas from a php script or similar.
- url : Put your url here, you can use placeholders aswell, like $player, $arg1,2, ecc
You can split the lines to show in-game with » » directly into the html\php code page. Example:
- get_output :
#Get the page output atall (Default false) If you need just to trigger the script, setting this to false is enough. - show_output_ingame :
#Show the output in the game chat (Default false) Be carefully at sending only what you need, or your client may crash. - save_output_as : #Save the output in playerdata.yml (To use it later in another command) (Default empty = save nothing)
- user_agent: Mozilla/5.0 #Change the User Agent
«POST» request method.
use «http_request_method: POST» as a command field, for set it up. (By default http_request_method is «GET»)
and «post_parameters: user=$player&password=12345» for send data.
Retrieve a JSON STRING VALUE from the page :
Using the field:
The output of the requested page will be the value of that specific json string.
Run a command automatically after a Page request :
As you can see, you can also use $output as placeholder to use the obtain data from the php script, directly into another command, that can be a script who checks the output to do something else.
Executing BungeeCord Proxy commands (5.6.0+)
1. Place the MyCommand_BungeeCord.jar file inside the BungeeCord plugin folder
2. Open the config file of the Main MyCommand (config.yml) and put PLUGIN_MESSAGE_LISTENER on true
3. Done. Restart proxy and server.
How to use in MyCommand Spigot side.
Use those placeholder at the start of a runcmd line to execute commands on the BungeeCord Proxy. Or use /mycmd bungee (to debug stuffs).
BungeeCord Teleport
If you have a server with BungeeCord Proxy, use this function for make teleports command from one server to another.
- Command type : BUNGEE_TP
- server_name: Put your server name here (You can find the name in the bungee config, or type /glist)
Use /lmcmd Commands
(This command it’s deprecated,but it’s here if you want use it)
REMOVED FROM THE VERSION 5.6.4. I’ve made a standalone version, check on the MyCommand spigot page.
1. Create a new list of commands by typing : /lmcmd create
2. Add the commands in your new empty list with : /lmcmd add (with slash if you want to use this in-game)
3. Perform the list of commands with : /lmcmd run
Other commands: — Show all command list with : /lmcmd list
— Remove a list of command with : /lmcmd delete
— See information of a list with : /lmcmd check
— Remove a single command from a list with : /lmcmd remove
Type & PlaceHolders
Page Moved, check the NAVBAR on the right ->
Playerdata feature and MYSQL support
Like the custom variables feature, but here the information can be stored for every specific player.
Try «/mycmd-playerdata» in-game to see all the commands available in-game. And check the Script page for some examples and useful scripts.
- /mycmd-playerdata check PlayerName (Returns with all the stored variables for that specific user)
- /mycmd-playerdata set PlayerName coins 10 (This will create or override that variable with the new value.)
- /mycmd-playerdata PlayerName coins 10 (Works with numbers obviously to add or subtract, 10 in this case)
- /mycmd-playerdata removevariable PlayerName varname (Delete a variable from the database)
- /mycmd-playerdata deleteaccount PlayerName (Delete everything from a player)
remove the output in the console :
You can disable the output of the «edit» done, by adding _silent suffix to the operation you’re doing.
Example /mycmd-playerdata add_silent PlayerName coins 1 , or remove_silent ecc.
MYSQL SUPPORT
To utilize a SQL database for MyCommand PlayerData feature, you need to set-up a connection. For do so, you need to update the lines in config.yml with your database information. Put USE: true, and a working database name and server location.
If you’re having problem with the reconnetion to the mysql database, try to use
Or add «?autoReconnect=true» just after the database name. Example :
For both, variables and playerdata you can store them also creating a section in the config file. Just split the variabile with an dot «.». Example : /mycmd-playerdata set Ivanpro home.loc_x 10
Leaderboard command type for playerdata
Sort playerdata number values by the highest amount. Configure it using the new field «playerdata_value» , «leaderboard_size» and «leaderboard_text»
PlaceHolders : $index , $username , $points
WorldGuard Region support
Add allowed_wg_regions or blocked_wg_regions in you command fields for allow o block single or multiple regions.
BarAPI / BOSS BAR Features
This functions works without external plugin on MyCommand 5.1.8 or above. If you have an older version, you need to download BarAPI. BarAPI plugin. Download and put it in your plugin folder (ONLY for older version of MyCommand.
There are 2 command types. BAR_API_TEXT and BAR_API_BROADCAST_TEXT. Use the first for send the message only at the sender or use the broadcast type for display the message to everyone.
Example of use :
You can use «bar_seconds» or «bar_percentage» for manage the boss bar on older version of Mycommand
and with the newer you can also use : bar_color, bar_style, bar_flag.
+ BossBar supported colors : BLUE,RED,GREEN,PINK,PURPLE,WHITE,YELLOW
+ BossBar Style : SEGMENTED_6,SEGMENTED_10,SEGMENTED_12,SEGMENTED_20
+ BossBar Flag : PLAY_BOSS_MUSIC, DARKEN_SKY, CREATE_FOG
If you put the bar_second on 0, the bar never go away.Use %remove% for remove it, in a separate command, or replace it with another new bar.
Default time without declare nothing is 3 second, after this time the bar go away.
Setup the Scheduler
(The scheduler is not supported and maybe outdated). First : Active the scheduler from config file with :
Now,you can setup your date format (optional):
d = day , M = month , y = year. For example d M yyyy = 1 12 2012.
Setup the initial timer for the first check in seconds :
For the last,set the scheduler timer in minutes:
Config it’s ready,now use the /mycmd-scheduler in game.
Create a new scheduler list with /mycmd-scheduler create test
Add a date,or «always» for setup the date,example : /mycmd-scheduler add test date 5 12 2012 (5 december 2012)
Now setup the commands with /mycmd-scheduler add test command /pex user User group set Member
Done.
See the other command in the commands page.
P.S.:The Scheduler doesn’t work with custom commands, so register the command before or use it for other plugin commands.
Spout Plugin Features
Make a notification «spout-notification» type commands:
In the last line put the Item by ID (integer).Ex: 1 = stone.
Output :
Источник