Advertisement
LHemon412

opcommand.sk

Jul 19th, 2018
114
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.11 KB | None | 0 0
  1. command /gmc [<player>]:
  2. trigger:
  3. player is op
  4. if arg-1 is set:
  5. set arg-1's gamemode to creative
  6. else:
  7. set player's gamemode to creative
  8. command /gms [<player>]:
  9. trigger:
  10. player is op
  11. if arg-1 is set:
  12. set arg-1's gamemode to survival
  13. else:
  14. set player's gamemode to survival
  15.  
  16. command /tp [<text>] [<text>] [<text>]:
  17. trigger:
  18. player is op
  19. if (arg-1 parsed as number) is set:
  20. if (arg-2 parsed as number) is set:
  21. if (arg-3 parsed as number) is set:
  22. teleport player to location at arg-1 parsed as number, arg-2 parsed as number, arg-3 parsed as number
  23. send "&c管理員指令 >> &e傳送到 %arg-1%, %arg-2%, %arg-3%"
  24. loop all ops:
  25. loop-value is not player
  26. send "&7&o[管理員 %player% 傳送到 %arg-1%, %arg-2%, %arg-3%" to loop-value
  27. stop
  28. else if arg-3 is not set:
  29. if arg-1 is set:
  30. if (arg-1 parsed as player) is set:
  31. if arg-2 is set:
  32. if (arg-2 parsed as player) is set:
  33. teleport arg-1 parsed as player to arg-2 parsed as player
  34. send "&c管理員指令 >> &e傳送玩家 &a&l%arg-1 parsed as player% &e到 &a&l%arg-2 parsed as player%"
  35. loop all ops:
  36. loop-value is not player
  37. send "&7&o[管理員 %player% 傳送玩家 %arg-1 parsed as player% 到 %arg-2 parsed as player%" to loop-value
  38. stop
  39. else:
  40. send "&c管理員指令 >> &e玩家 &a&l%arg-2% &e不在線!"
  41. stop
  42. else:
  43. teleport player to arg-1 parsed as player
  44. send "&c管理員指令 >> &e傳送到玩家 &a&l%arg-1 parsed as player%"
  45. loop all ops:
  46. loop-value is not player
  47. send "&7&o[管理員 %player% 傳送到玩家 %arg-1 parsed as player%" to loop-value
  48. stop
  49. else:
  50. send "&c管理員指令 >> &e玩家 &a&l%arg-1% &e不在線!"
  51. stop
  52. send "&c管理員指令 >> &f/tp <x> <y> <z>"
  53. send "&c管理員指令 >> &f/tp <玩家A> <玩家B>"
  54. send "&c管理員指令 >> &f/tp <玩家>"
  55.  
  56. command /s <player>:
  57. trigger:
  58. player is op
  59. teleport arg-1 to player
  60.  
  61. command /skrun <text>:
  62. trigger:
  63. player is op
  64. evaluate "%arg-1%"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement