Facebook
From Colorant Cat, 4 Years ago, written in Plain Text.
Embed
Download Paste or View Raw
Hits: 192
  1. command /servers:
  2.         trigger:
  3.                 open chest with 1 row named "&aYotaWar Servers" to player
  4.                 set {Inventory.%player%.Open} to true
  5.                 format slot 3 of player with cyan glass pane named "&cFactions" with lore "&7Join this server" to close then run [execute player command "/joinfactionss"]
  6.                 format slot 4 of player with red glass pane named "&cParkour" with lore "&7Join this server" to close then run [execute player command "/joinparkour"]
  7.                 format slot 5 of player with yellow glass pane named "&cBedwars" with lore "&7Join this server" to close then run [execute player command "/joinbedwars"]
  8.                
  9. on right click with nether star:
  10.         if player is holding a nether star named "&aServer Selector":
  11.                 execute player command "/servers"
  12.                
  13. command /joinfactionss:
  14.         trigger:
  15.                 teleport player to {factions}
  16.                 send "&7You have been sent to &cFactions"
  17.                 execute console command "/pex user %player% add factionsjoined"
  18.                 execute console command "/pex user %player% remove parkour"
  19.                 execute console command "/pex user %player% remove bedwars"
  20.                
  21. command /joinparkour:
  22.         trigger:
  23.                 teleport player to {parkour}
  24.                 send "&7You have been sent to &cParkour"
  25.                 execute console command "/pex user %player% add parkour"
  26.                 execute console command "/pex user %player% remove bedwars"
  27.                 execute console command "/pex user %player% remove factionsjoined"
  28.                
  29. command /joinbedwars:
  30.         trigger:
  31.                 teleport player to {bedwars}
  32.                 send "&7You have been sent to &cBedwars"
  33.                 execute console command "/pex user %player% add bedwars"
  34.                 execute console command "/pex user %player% remove parkour"
  35.                 execute console command "/pex user %player% remove factionsjoined"
  36.                
  37. command /spawn:
  38.         aliases: /hub
  39.         trigger:
  40.                 execute console command "/pex user %player% remove factionsjoined"
  41.                 execute console command "/pex user %player% remove bedwars"
  42.                 execute console command "/pex user %player% remove parkour"
  43.                 send "&7You have been sent to the hub!"
  44.                 teleport player to {spawn}
  45.                 send "&7"
  46.                 send "&7If you wish to be sent to the &cminehut &7hub, type &c/mhub"
  47.  
  48. every 20 seconds in "world":
  49.         loop all players:
  50.                 if loop-player has permission "factionsjoined":
  51.                         wipe loop-player's sidebar
  52.                         set name of sidebar of loop-player to "&c&lYotaWar &7| &fMinigames"
  53.                         set score "&c&m---------------" in sidebar of loop-player to 14
  54.                         set score "&7" in sidebar of loop-player to 13
  55.                         set score "  &7Rank &8» &c%{_prefix}%" in sidebar of loop-player to 12
  56.                         set {_prefix} to "%colored loop-player's prefix%"
  57.                         replace all "[" and "]" with "" in {_prefix}
  58.                         set score "  &7Server &8» &cFactions" in sidebar of loop-player to 11
  59.                         set score "&f" in sidebar of loop-player to 10
  60.                         set score "&7&oYotaWar.minehut.gg" in sidebar of loop-player to 9
  61.                         set score "&c&m---------------" in sidebar of loop-player to 8
  62.                 if loop-player has permission "bedwars":
  63.                         wipe loop-player's sidebar
  64.                         set name of sidebar of loop-player to "&c&lYotaWar &7| &fMinigames"
  65.                         set score "&c&m---------------" in sidebar of loop-player to 14
  66.                         set score "&7" in sidebar of loop-player to 13
  67.                         set score "  &7Rank &8» &c%{_prefix}%" in sidebar of loop-player to 12
  68.                         set {_prefix} to "%colored loop-player's prefix%"
  69.                         replace all "[" and "]" with "" in {_prefix}
  70.                         set score "  &7Server &8» &cBedwars" in sidebar of loop-player to 11
  71.                         set score "&f" in sidebar of loop-player to 10
  72.                         set score "&7&oYotaWar.minehut.gg" in sidebar of loop-player to 9
  73.                         set score "&c&m---------------" in sidebar of loop-player to 8
  74.                 if loop-player has permission "parkour":
  75.                         wipe loop-player's sidebar
  76.                         set name of sidebar of loop-player to "&c&lYotaWar &7| &fMinigames"
  77.                         set score "&c&m---------------" in sidebar of loop-player to 14
  78.                         set score "&7" in sidebar of loop-player to 13
  79.                         set score "  &7Rank &8» &c%{_prefix}%" in sidebar of loop-player to 12
  80.                         set {_prefix} to "%colored loop-player's prefix%"
  81.                         replace all "[" and "]" with "" in {_prefix}
  82.                         set score "  &7Server &8» &cParkour" in sidebar of loop-player to 11
  83.                         set score "&f" in sidebar of loop-player to 10
  84.                         set score "&7&oYotaWar.minehut.gg" in sidebar of loop-player to 9
  85.                         set score "&c&m---------------" in sidebar of loop-player to 8
  86.                        
  87. command /mutechat [<text>]:
  88.         trigger:
  89.                 if arg-1 is not set:
  90.                         send "&c/mutechat on/off"
  91.                 if arg-1 is set:
  92.                         if {mutechat} is true:
  93.                                 send "&7The chat is alredy muted!"
  94.                         if arg-1 is "on":
  95.                                 set {mutechat} to true
  96.                                 broadcast "&c&lThe chat has been muted!"
  97.                                 broadcast "&7&l------------------------"
  98.                                 broadcast "&7Chat muted by: &c%player%"
  99.                         if arg-1 is "off":
  100.                                 set {mutechat} to false
  101.                                 broadcast "&7Chat has been unmuted by &c%player%"
  102.                         if {mutechat} is false:
  103.                                 send "&7The chat is alredy &cmuted&7!"
  104.                                 stop
  105.                                
  106.  
  107.  
  108. command /opsword:
  109.         trigger:
  110.                 give player 1 diamond sword with sharpness 50
  111. on chat:
  112.         if player has permission "talkwhilemuted":
  113.                 stop
  114.         if {mutechat} is true:
  115.                 send "&cThe chat has been muted!"
  116.                 cancel event
  117.                        
  118.                        
  119.  
  120. command /drop:
  121.     trigger:
  122.         send "&7You are not allowed to drop the &aServer Selector&7!" to player
  123.                
  124. command /sethub:
  125.         trigger:
  126.                 set {spawn} to location
  127.                
  128. on join:
  129.         execute console command "/pex user %player% remove factionsjoined"
  130.         execute console command "/pex user %player% remove bedwars"
  131.         execute console command "/pex user %player% remove factionsjoined"
  132.         teleport player to {spawn}
  133.         give player 1 nether star named "&aServer Selector"
  134.        
  135.  
  136. on quit:
  137.         execute console command "/pex user %player% remove factionsjoined"
  138.         execute console command "/pex user %player% remove bedwars"
  139.         execute console command "/pex user %player% remove factionsjoined"
  140.         teleport player to {spawn}
  141.                
  142. command /mhub:
  143.         trigger:
  144.                 execute player command "/lobby"
  145.                
  146. command /setfactions:
  147.         trigger:
  148.                 set {factions} to location
  149.                 send "&7done"
  150.                
  151. command /setparkour:
  152.         trigger:
  153.                 set {parkour} to location
  154.                 send "&7done"
  155.        
  156. command /setbedwars:
  157.         trigger:
  158.                 set {bedwars} to location
  159.                 send "&7done"
  160.