Advertisement
kama6012

EC

Feb 24th, 2018
51
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.03 KB | None | 0 0
  1. command /enderchest [<offlineplayer>]:
  2. usage: &cエンダーチェストを開きます。OP権限を持っていれば/ec プレイヤー名 で他人のエンダーチェストも開けます。
  3. aliases: /ec
  4. trigger:
  5. if arg 1 is not set:
  6. open the player's enderchest for the player
  7. play sound "block.chest.open" at player
  8. message "&aエンダーチェストを開きました!"
  9. stop
  10. else if the player has the permission "admin":
  11. if arg 1 has played before:
  12. open arg 1's enderchest for the player
  13. play sound "block.shulker_box.open" at player
  14. message "&b%arg 1%さんのエンダーチェストを覗いています。"
  15. stop
  16. else:
  17. message "&b[Error]&cこのプレイヤーはこのサーバーに入ったことがありません!"
  18. stop
  19. else:
  20. message "&b[error]&c権限を持っていません!"
  21. stop
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement