MyCommand v5.6.7

Details

  • Filename
    MyCommand.jar
  • Uploaded by
  • Uploaded
    Oct 9, 2020
  • Size
    505.36 KB
  • Downloads
    5,806
  • MD5
    4c8d55741440e430d2fa0738b9d9a642

Supported Bukkit Versions

  • 1.16
  • 1.15
  • 1.14
  • 1.13
  • 1.12
  • 1.11
  • 1.10
  • 1.9
  • 1.8

Changelog

MyCommand 5.6.7

Playerdata values are now stored per player. If you're using any type of flatfile playerdata, you need to convert the older playerdata.yml into the new one's who are going to be located in the folder /playerdata/uuid.yml

To continue using your PLAYERDATA flatfile(yml) without losing your "playerdatas", you need to convert the old database into the new one :
Run the command : /mycmd-playerdata convert_to_new_flat_style

Misc:

PlaceHolderAPI should now remain hooked also after this one gets reloaded.
Hex Colors now works also on RAW message's (RAW_TEXT).
Fixed NPE while attempting to spawn holograms on unloaded worlds.
Fixed "iconmenu_autofill: BLACK_STAINED_GLASS_PANE" NPE if no other argument were given after the Itemname (EX. ITEM:0:true ecc)
Fixed POTION item types not being able to be used on 1.12 and older servers.
Execute-mode error-message now replace palceholders and colors.
Blocked Hex colors from getting replaced on servers older than 1.16
Made working some %PlayerOptions%setItemInHand commands on older server versions.
Fixed a NPE in the ItemCost function
Fixed %mycommand_cooldown_commandname% PAPI placeholder, now returns 0 if the command isn't in cooldown
iconmenu_type: WORKBENCH can now be used in all it's position 0 to 9 (0 = result, 1-9 recipe)
Added "%PlayerOptions%setCustomModelData: 123"
Added $itemcustommodeldata placeholder

Experimenting with Advancements : /mycmd telltoast <playername> message. (this command will broadcast a message inside the Advancement toast style notification). Works, but to unregister them, i need to reload the server data.

Added /mycmd opengui <player> <command_name> <args> (Open an iconmenu/anvil_gui directly from the console).

RUN_COMMAND_TASK now works from the console.

Added /mycmd-blockset cancelevent (If active, cancel any event from getting triggered. Ex. If you use a CHEST and put this on true, the chest doesn't open)

Added $world_time (placeholder)

Added %skip% for the HOVER PART of a RAW_TEXT. Using %skip% will prevent the popup to show at all.

Scheduler :
You can now run command only at the server start(mycmd start), by using "start" in the date:
/mycmd-scheduler add mylist date start


playerevents.yml ------->

Added PlayerChangedWorld. Triggers when a player change world.

Code (YAML):

PlayerChangedWorld
:
  active
: false
  execute
:
  - '$text$&aWorld changed &8(&2$world&8)'


Added a condition feature to the tab_completer. Example <pos_1=give>, in this case if the typed word at the position 1 is give, the selected word (money) will show in the suggestions.

Code (YAML):
tab_completer_test2:
  command
: /customtab
  type
: RUN_COMMAND
  runcmd
:
 - $broadcasttext$&0[&e$player&0]&r $multiargs
  required_args
: 1
  register
: true
  tab_completer
:
   '1'
:
  - give
   - msg
   - other
   '2'
:
  - money<pos_1=give><permission>test.test
   - $player_list<pos_1=msg>
  - something<pos_1=other>
  - always show
   '3'
:
  - bla bla
   - amount<pos_2=money>


MERCHANT_GUI :

You can now run's commands from the Merchant GUI.
Put your commands after the "<commands>" separator. You can put multiple commands by splitting them with the ";" semicolon character.
In order to work, you need to TURN ON the LISTENER from config.yml.
- LISTENERS > INVENTORY_LISTENER: true

Example:

Code (YAML):
merchant_command_example:
  command
: /merchantcmds
  type
: MERCHANT
  merchant_title
: "&3Merchant Example"
  merchant_items
:
  - STONE_SWORD:1<cost>EMERALD:5<max_uses>4<commands>/command here;/command 2 here
  - LEVER:1<commands>$text$&bYou've just bought a &3lever!

P.S. Some time is elapsed from the last release, i decided to release what i've done in this time anyway, without leaving it getting the dust for some other months. If there is a change to do, i see to release fixes faster.