Advertisement
miyasoku

Skript gamemode

Mar 24th, 2020
1,125
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.55 KB | None | 0 0
  1. command /gamemode [<text>] [<player>]:
  2. aliases: /gm
  3. trigger:
  4. if player has permission "minecraft.gamemode":
  5. if arg 2 is not set:
  6. if arg 1 is "creative" or "c" or "1":
  7. set gamemode of player to creative
  8. send "&aGamemode updated to &fcreative"
  9. loop all players:
  10. if loop-player is op:
  11. send "&7&o[%player%: ゲームモードをクリエイティブモードに変更しました]"
  12. if arg 1 is "survival" or "s" or "0":
  13. set gamemode of player to survival
  14. send "&aGamemode updated to &fsurvival"
  15. loop all players:
  16. if loop-player is op:
  17. send "&7&o[%player%: ゲームモードをサバイバルモードに変更しました]"
  18. if arg 1 is "spectator" or "sp" or "3":
  19. set gamemode of player to spectator
  20. send "&aGamemode updated to &fspectator"
  21. loop all players:
  22. if loop-player is op:
  23. send "&7&o[%player%: ゲームモードをスペクテイターモードに変更しました]"
  24. if arg 1 is "adventure" or "a" or "2":
  25. set gamemode of player to adventure
  26. send "&aGamemode updated to &fadventure"
  27. loop all players:
  28. if loop-player is op:
  29. send "&7&o[%player%: ゲームモードをアドベンチャーモードに変更しました]"
  30. else:
  31. if arg 2 is set:
  32. if arg 1 is "creative" or "c" or 1:
  33. set gamemode of arg 2 to creative
  34. send "&aGamemode of %arg-2% updated to &fcreative"
  35. loop all players:
  36. if loop-player is op:
  37. send "&7&o[%player%: %arg-2%のゲームモードをクリエイティブモードに変更しました]"
  38. if arg 1 is "survival" or "s" or 0:
  39. set gamemode of arg 2 to survival
  40. send "&aGamemode of %arg-2% updated to &fsurvival"
  41. loop all players:
  42. if loop-player is op:
  43. send "&7&o[%player%: %arg-2%のゲームモードをサバイバルモードに変更しました]"
  44. if arg 1 is "spectator" or "sp" or 3:
  45. set gamemode of arg 2 to spectator
  46. send "&aGamemode of %arg-2% updated to &fspectator"
  47. loop all players:
  48. if loop-player is op:
  49. send "&7&o[%player%: %arg-2%のゲームモードをスペクテイターモードに変更しました]"
  50. if arg 1 is "adventure" or "a" or 2:
  51. set gamemode of arg 2 to adventure
  52. send "&aGamemode of %arg-2% updated to &fadventure"
  53. loop all players:
  54. if loop-player is op:
  55. send "&7&o[%player%: %arg-2%のゲームモードをアドベンチャーモードに変更しました]"
  56. else:
  57. send " &cI'm sorry, but you do not have permission to perfrom this command. Please contact the server administrators if you believe that this is in error."
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement