MyCommand v5.5.0

Details

  • Filename
    MyCommand.jar
  • Uploaded by
  • Uploaded
    May 19, 2019
  • Size
    376.36 KB
  • Downloads
    8,158
  • MD5
    5a88bbf907cb88a7fbb793df4ce83a92

Supported Bukkit Versions

  • 1.14
  • 1.13
  • 1.12
  • 1.11
  • 1.10
  • 1.9
  • 1.8.1
  • 1.8

Changelog

Built with spigot 1.14.1 API's.

 

Added the support for older bukkit/spigot server version. 1.13, 1.12 and maybe older one's should work fine.

 

Dropped Metrics MCStats for bStats. https://bstats.org/plugin/bukkit/MyCommand


Implemented an At (@) selector parsing method made by md_5. (Deactive it in config.yml under DEBUG, voice USE_AT_SELECTORS_PLACEHOLDERS: true (by default))

 

BREAKING CHANGE : Fixed a typo on those 2 script lines .args.length> and .string.length> , update your commands if you used them.

 

Added /mycmd playeroptions <method> <values>  (Basically %PlayerOptions% in a command. Use it for debug or whatever. Complete of tabcompleter, with a comprehensive list of POTION, ENCHANTMENTS, SOUND and EFFECT'S names.)

 

Added /mycmd editcooldown <player> <command_name> <time> (Allow's you to manage active cooldowns.) "/mycmd editcooldown <player>" Show's player active cooldowns.


New RunAs sub-commands : /mycmd-runas team and /mycmd-runas tag

 

New Placeholders : (Both returns with the player sender teams and tags.)
  $teams
  $tags

 

New PlayerOptions :

 

'%PlayerOptions%removeItem: MATERIAL_NAME:AMOUNT' works the same as %PlayerOptions%addItem (It will remove only the same exact ItemStack, it doesn't subtract items from a existing one)

'%PlayerOptions%withdrawItems: MATERIAL_NAME:AMOUNT:ITEM_DISPLAYED_NAME' #This works like the itemcost feature.
'%PlayerOptions%deleteSingleItem: MATERIAL_NAME:AMOUNT:ITEM_DISPLAYED_NAME' #This will remove a complete ItemStack from the inventory of a desider type. Amount number is superfluous
'%PlayerOptions%deleteAllItems: MATERIAL_NAME:AMOUNT:ITEM_DISPLAYED_NAME' #This will remove all the ItemStacks of a certain type from the inventory. Amount number is superfluous
'%PlayerOptions%addScoreboardTag: tag_name'
'%PlayerOptions%removeScoreboardTag: tag_name'
'%PlayerOptions%addEnchantment: ENCHANT_NAME:LEVEL'
'%PlayerOptions%removeEnchantment: ENCHANT_NAME'

 And other one's : %PlayerOptions%openWorkbench: NAME, %PlayerOptions%openInventory: NAME, %PlayerOptions%openMerchant: ITEM..ecc, %PlayerOptions%openEnchanting, %PlayerOptions%setCursorOpenInventory: ITEM

 

 

Added "%TempVariable%VarName.tolowercase"

 

Example :
runcmd:
- "%TempVariable%VarName=$iteminhand"
- "%TempVariable%VarName.tolowercase"
- "$text$&aTemp Variable -&3 VarName"

 

 

New Type of PlaceHolder added :


$CheckPlayerStatus%Player_Name%Status%. (This one allow's to create more precise condition in a if/else statment. (all returns with true or false))

Example :

runcmd:
- $Script$%if%$CheckPlayerStatus%$arg1%isOnline%==true
- /playerisonline
- $Script$%else%
- /notonline

All fields : isOnline, isOnGround, isDead, isFlying, isSwimming, isSneaking, isInsideVehicle, isSprinting, isSleeping, isOp

 

 

Added MERCHANT command type.


This one will open to you a Merchant Item GUI, where you can buy stuffs. Configurable.

ITEM_TO_SELL<cost>ITEM_NEEDED_TO_BUY_1:AMOUNT<cost>ITEM_NEEDED_TO_BUY_2:AMOUNT<max_uses>10

<max_uses>N -> Determinate how many times one thing can be bought.

merchant_example:
command: /mymerchant
type: MERCHANT
merchant_title: '&3Hello &b$player'
merchant_items:
- STONE_SWORD:1:0:DAMAGE_ALL;1;FIRE_ASPECT;1:&3Old Sword:&bA very old sword<cost>GOLD_INGOT:20<max_uses>2
- STONE_SWORD:1<cost>EMERALD:5<max_uses>4
- IRON_BLOCK:1<cost>EMERALD:1<cost>GOLD_INGOT:1
- GOLD_BLOCK:1<cost>IRON_INGOT:10
- EMERALD_BLOCK:1<cost>GOLD_INGOT:50
- DIAMOND_BLOCK:1<cost>GOLD_INGOT:50<cost>EMERALD:50
- LEVER:1
- COBBLESTONE:1

 

Added HOLOGRAPHIC_TEXT and BROADCAST_HOLOGRAPHIC_TEXT command type.


This will spawn a floating text in front of the player sender. No NMS code, so only one line at the time. HolographicDisplays exist if you want nms features.

holographic_example:
command: /holoexample
type: HOLOGRAPHIC_TEXT
text:
- "&eHello $player, how are you?"
- "$random_coloryeah, i'm fineeeee thanks!"
- "&dCurrent time &5$time"
delaytimer: 3

 

 

ICONMENU :
Added a way to set_up itemflags.

iconmenu_itemflags:
- HIDE_ATTRIBUTES
- HIDE_DESTROYS
- HIDE_ENCHANTS
- HIDE_PLACED_ON
- HIDE_POTION_EFFECTS
- HIDE_UNBREAKABLE

 

 

BLOCK_PATTERN Additions :
Added %PlayerOptions%undoPattern or simply for admin's "/mycmd undo". Allow to restore the latest BLOCK_PATTERN command used. Only the last one used, be aware.

 

mycmd-undo:
 command: /mycmd-undo
 type: RUN_COMMAND
 runcmd:
 - "%PlayerOptions%undoPattern"

 

 

Fixes :
TITLE command type, "effect_type" config option, is now by default 0. (it was a mistake the default on 1)
PlaceHolder API's MyCommand variables %mycommand_playerdata_<variable_name>%, %mycommand_playerdatafor_<playername>_<variable_name>% and %mycommand_variables_<variable_name>%, now supports variables with underscore in the name.
$NoReplace now work's from console.



Removed some old thing's like Spout...
Better TabCompleter for /mycmd tell (now show a list of placeholder)
Minor GUI changes.

A little reminder to myself and to you that %TempVariable%v1=v2, v1+v2, v1-v2 exist.