富贵·李
本帖最后由 富贵·李 于 2020-3-14 21:06 编辑


ProtectDrop
      这是我的第一个脚本,为啥叫脚本?因为这是基于Skript写的,你必须以Skript为前置才能保证此插件正常运行。
      本插件只有一个小功能,不洗勿喷~!

前  言
p r e f a c e
相信各位服主都遇到过这种情况:

玩家:服主服主,我的附魔剑掉地山被扫地大妈抢走了~!
[:hide:]服主:...

玩家:服主服主,我不小心把定制武器丢岩浆里烧没了~!
[:hide:]服主:...

那么现在好了,这个插件可以帮你解决这种困扰~

介  绍
i n t r o d u c e
本插件可以禁止玩家丢弃带有附魔属性和lore的物品
废话不多说直接上图吧








为了防止背包以满状态,挤丢贵重物品,特增加以下功能。




下  载
d o w n l o a d
如果你感觉本插件对你有帮助,请给我来点评分和金粒,感激不尽。




Skript版文件   写的不好,希望各位大佬指点。
丢弃物品保护.zip (822 Bytes, 下载次数: 20)

Skript源码
  1. On player droping:
  2.         if {diuqibaohu.%player%} is not set:
  3.                 set {diuqibaohu.%player%} to true
  4.         if {diuqibaohu.%player%} is true:
  5.                 if item are enchanted:
  6.                         if player can hold 128 of diamonds:
  7.                                 send "&d&m&l       &b&m&l       &e&m&l       &6&m&l       &c&m&l       " to player
  8.                                 send "&6[&c服主提示&6]&f:&4贵重物品请不要丢弃。" to player
  9.                                 send "&8 开启此功能输入/baohu" to player
  10.                                 send "&d&m&l       &b&m&l       &e&m&l       &6&m&l       &c&m&l       " to player
  11.                                 cancel the event
  12.                                 stop
  13.                         else:
  14.                                 send "&4警告:&c您的背包已满,&6贵重物品保护&c已关闭!" to player
  15.                                 stop
  16.                 if the 1st line of lore of item is set:
  17.                         if player can hold 128 of diamonds:
  18.                                 send "&d&m&l       &b&m&l       &e&m&l       &6&m&l       &c&m&l       " to player
  19.                                 send "&6[&c服主提示&6]&f:&4贵重的物品请不要丢弃。" to player
  20.                                 send "&8 开启此功能输入/baohu" to player
  21.                                 send "&d&m&l       &b&m&l       &e&m&l       &6&m&l       &c&m&l       " to player
  22.                                 cancel the event
  23.                                 stop
  24.                         else:
  25.                                 send "&4警告:&c您的背包已满,&6贵重物品保护&c已关闭!" to player
  26.                                 stop
  27. command /baohu:
  28.         trigger:
  29.                 if {diuqibaohu.%player%} is not set:
  30.                         set {diuqibaohu.%player%} to true
  31.                 if {diuqibaohu.%player%} is true:
  32.                         set {diuqibaohu.%player%} to false
  33.                         send "&d&m&l       &b&m&l       &e&m&l       &6&m&l       &c&m&l       " to player
  34.                         send "&6[&c服主提示&6]&f:&c掉落保护已关闭。" to player
  35.                         send "&d&m&l       &b&m&l       &e&m&l       &6&m&l       &c&m&l       " to player
  36.                 else:
  37.                         set {diuqibaohu.%player%} to true
  38.                         send "&d&m&l       &b&m&l       &e&m&l       &6&m&l       &c&m&l       " to player
  39.                         send "&6[&c服主提示&6]&f:&a掉落保护已开启。" to player
  40.                         send "&d&m&l       &b&m&l       &e&m&l       &6&m&l       &c&m&l       " to player
复制代码



TheRam_
本帖最后由 mcbucuo 于 2019-3-15 13:43 编辑

这款插件在生存服作用较大,防止手持残疾233

第一页 上一页 下一页 最后一页