|
应佐道的要求,写了个GiveAll插件开源地址:
/DuckGiveAll reload >> 重载插件
/DuckGiveAll help >> 查看帮助信息
/DuckGiveAll giveall >> 给予全服物品参数(1)
①%main_hand% >> 主手物品
②%off_hand% >> 副手物品
③%both_hands% >> 双手物品参数(2)
-m|-material:material >> 物品材质
-a|-amount:amount >> 物品数量
-d|-data:data >> 物品data
-nbt >> 物品NBT
注:以上参数(1)(2)二选一,如果什么都不写(/DuckGiveAll giveall)则默认使用参数(1)中的
①例:
(1) /DuckGiveAll giveall %both_hands% >> 给予全服双手中的物品
(2) /DuckGiveAll giveall -m:STONE -a:16 -d:0 >> 给予全服16个石头
配置:
config.yml:YAML:
prefix: \"&e[&6DuckGiveAll&e]\"
messages.yml:YAML:
reload: \"插件重载完成!\"
help:
- \"&e[&6DuckGiveAll&e]&b帮助信息\"
- \"&6/DuckGiveAll(dga) &egiveall &7[%main_hand%&e|&7%off_hand%|%both_hands%]&6 | &7[-m:material] [-a:amount] [-d:data] [-nbt:nbt]\"
unknownCommand: \"未知指令%command%,请输入/dga help查看帮助信息\"
nothing_in_main_hand: \"你的主手没有物品。\"
nothing_in_off_hand: \"你的副手没有物品。\"
give_item_to_player: \"你将物品 <item></item> 给予玩家 %player%。\"
give_item_to_all: \"你将物品 <item></item> 给予所有玩家。\"
claim_item: \"玩家 %giver% 给予了你物品 <item></item>。\"
no_item_data: \"请输入物品数据。\"
material_invalid: \"%material% 不是有效材质。\"
amount_invalid: \"数量 %amount% 无效。\"
data_invalid: \"数据 %data% 无效。\"
nbt_invalid: \"NBT %nbt% 数据无效。\"
item_style: \"&e[&b%item% × %amount%&e]\"

下载地址:
|
|