Advertisement
minmin0917

AntiTNT

Dec 19th, 2019
110
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.08 KB | None | 0 0
  1. on place of tnt:
  2. if {TNT.Place.%player%} is true:
  3. stop
  4. else:
  5. cancel event
  6. send "&c%player% さんがTNTを置きました。荒らしだと判断した場合はBANすることをお勧めします" to op
  7.  
  8. command /tntplace [<player>] [<text>]:
  9. permission: op
  10. permission message: &cOP権限がないとこのコマンドを使用することができません
  11. trigger:
  12. if arg 1 is not set:
  13. send "&c使用方法 : /tntplace (player) (true / false)"
  14. send "&ctrue // プレイヤーのTNTの使用を許可します"
  15. send "&cfalse // プレイヤーのTNTの使用を禁止します"
  16. else:
  17. if arg 2 is not set:
  18. send "&c使用方法 : /tntplace (player) (true / false)"
  19. send "&ctrue // プレイヤーのTNTの使用を許可します"
  20. send "&cfalse // プレイヤーのTNTの使用を禁止します"
  21. if arg 2 is "true":
  22. send "&c%arg 1% さんのTNTの使用を許可しました"
  23. set {TNT.Place.%arg 1%} to true
  24. if arg 2 is "false":
  25. send "&c%arg 1% さんのTNTの使用を禁止しました"
  26. set {TNT.Place.%arg 1%} to false
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement