ALWAYS use numbers in an ascending order 1,2,3.Įxample, 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". In this example instead, every position of the command typed in the chat prompt, will return with different informations. There are special PlaceHolder for the tab_completer only : like $player_list for example - (It returns with a list of the online players) Tab_completer can be customized by positions following the scheme here forward. P.S The command field "aliases" is completly different from the command type "ALIAS".Īdvanced use of the TabCompleter (>5.5.1) : You can add easily multiple aliases to a registered command by placing them under the "aliases" command field. RUN_COMMANDS:Īdd multiple aliases to a registered command : This can help prevent some problem in certain cases, but take in mind that by turning on this feature, unregistered commands, can't be run from a runcmd list. COMMANDS:ĭEFAULT_DESCRIPTION: "Registered M圜ommand Command"Īnother feature linked to registered commands, is to make whole RUN_COMMAND feature, executing only real commands. Or, turn on the auto register in config.yml to make any command created with M圜ommand registered by default. So, if in the previous plugin version "itemcost" line is '4:5', in the newer become "COBBLESTONE:5".Ĭommand_description: "My Registered Command" Otherwise, on older plugin version (4.0.0), you must use the item name instead of the item ID. If you see the example here above, the command name is "no_permission_example", so the final permission become: "_permission_example". On the newer version of the plugin, the default permission is "_name", where "command_name" is the first section of the command. The default permission depends on what configuration you are using. ' no_permission_example ' : command: / freecommand type: TEXT permission - required : falseīy default, if you don't set any permission, the plugin put one automatically on it. The first is using the "ALIAS" Type, the other one, using the more flexible and always recommended way "RUN_COMMAND" command type. ![]() You can use it with BROADCAST_TEXT command type or also with the "$broadcasttext$" placeholder for runcmd. 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) Text_style: CENTERED Broadcast message inside a define range : '&aThis text is going to be right at the center' You can automatically auto-center the text of your command by using the "text_style" command field.įollow the example to see how: 'center_example': message Text Styles - Centered text.Ī built-in feature inside M圜ommand to be used with both the TEXT and BROADCAST_TEXT command type is the centered text. Broadcast_message_permission_node: permission.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |