MyCommand v5.5.1
Details
-
FilenameMyCommand.jar
-
Uploaded by
-
UploadedJul 19, 2019
-
Size386.77 KB
-
Downloads11,587
-
MD537cd8412b349b6674a6e9f685062ec2c
Supported Bukkit Versions
- 1.14
- 1.13
- 1.12
- 1.11
- 1.10
- 1.9
- 1.8
Changelog
Built with spigot 1.14.3 API's.
IconMenu's commands now support execute_mode
USE_AT_SELECTORS_PLACEHOLDERS is now by default "false"
Reworked the console support for $delay$ and $delay$<123>. (runcmd != text field. With the second one, results still can be differents. runcmd now act as the player counterpart.)
$Script changes :
Double values are now rounded at 2 decimal digits only. (Edit that in config.yml DEBUG.ROUND_DOUBLE_DECIMALS_AT: 2)
Added "/mycmd-playerdata divide" and "/mycmd-playerdata multiply"
tab_completer can now be costumized by positions, and support placeholders too.
Special PlaceHolder for the tab_completer only : $player_list (It returns with a list of the online players)
tab_completer: 1: - set - add - remove 2: - $player_list 3: - money - gold - credits 4: - amount - $rnd6
Added a new command type "LIVE_CHAT". (Proof of concept)
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.
live_chat_example: command: /livechat type: LIVE_CHAT text: - "&aHow much is '2 + 2'" - "&aWrite your answer in the chat!" answer: "4" success-message: "&bQuick math!" runcmd: - "/me minus 1 that's 3!"
Added "disable_on:" config option feature.
This feature allow's you to disable the command if the typed-in command match the one inside the "disable_on" list
pets: command: /pet type: RUN_COMMAND runcmd: - '/shop pets' disable_on: - /pet summon creeper
Added 2 placeholder for checking if a player is part or the owner of a WG region : (return true or false)
$wgisowner , $wgismember
MERCHANT command type Items are now customizable by their name, enchantments and lore.
-> - DIAMOND_BLOCK:1STONE_SWORD:1:0:DAMAGE_ALL;1;FIRE_ASPECT;1:&3Old Sword:&bA very old sword4
Added PlayerInteractEvent in playerevents.yml
PlayerInteractEvent: active: true cancel_event: true materials: CHEST: - $broadcasttext$&a$player &2touched a chest! COBBLESTONE: - /say yeah
cancel_event on false will allow players to execute the command and still open the chest or whatever interaction they are doing on the target block.
Added more Placeholders : $location , $getbedlocation (both return with mycmd location format. bedlocation if not setup, will return with "not found")
Example :
bedlocation_script: command: /checkbed type: RUN_COMMAND runcmd: - $Script$%if%$getbedlocation==not found - $text$&cCan't find the bed location - $Script$%else% - $text$&aTeleporting to your bed - "%PlayerOptions%teleport: $getbedlocation"
Added "%PlayerOptions%spawnFirework: true" (Spawn a random firework... yes)
Added
$CheckPlayerStatus%Player_Name%hasPlayedBefore%
Fixed dynamic ICON_MENU with empty lore lines, now should work also if that field is "" instead of " ";
Suppressed a EOFException error in the PluginMessageEvent