Advertisement
Guest User

lol

a guest
May 26th, 2019
90
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. options:
  2.     servername: Minature
  3.  
  4. options:
  5.     Icon:
  6.     IconColor: &f
  7.  
  8. command /list:
  9.     trigger:
  10.         set {_num} to -1
  11.         open chest with 6 rows named "&6▙&e{@servername}&6▜ &8&l(&c%number of all players%&8&l)" to player
  12.         loop all players:
  13.             add 1 to {_num}
  14.             format slot {_num} of player with skull of ("%loop-player%" parsed as offline player) named "&7%loop-player%" to close then run [execute console command "mtp %player% %loop-player%"]
  15.  
  16.  
  17. options:
  18.     support-see: rank.support #Permission to see support requests
  19.     lobby-world: world #Main world for commands to be dispatched from
  20.     fly-permission: node.fly #Permission to fly in {@lobby-world}
  21.    
  22.  
  23.  
  24. function scriptCompile(n: number) :: number:
  25.     broadcast "&cReloading &aWorld&eHost&c version 1.0 &6by &9_C02&c!"
  26.     execute console command "sk reload WorldHost"
  27. function credSend(p: player) :: player:
  28.     send "&7" to {_p}
  29.     send "&aWorld Host &bcreated by &eMiniRascal" to {_p}
  30.     send "&aTwitter: &b@_C02" to {_p}
  31.     send "&aServer: &bdeathryl.ga:2108" to {_p}
  32.     send "&aDonate to me :D: &bPaypal: &aPayPal.me/MiniRascal" to {_p}
  33.     send "&7" to {_p}
  34. on server stop:
  35.     scriptCompile(1)
  36. command /fly [<offline player>]:
  37.     trigger:
  38.         if world is "%{server.%player%}%":
  39.             if arg 1 is set:
  40.                 if offlineplayer-arg is online:
  41.                     if {flight.%arg-1%} is set:
  42.                         delete {flight.%arg-1%}
  43.                         set arg-1's flight mode to false
  44.                         send "&bYour flight mode was changed to false!" to arg-1
  45.                         send "&aFlight mode updated"
  46.                     else:
  47.                         set {flight.%arg-1%} to true
  48.                         set arg-1's flight mode to true
  49.                         send "&bYour flight mode was changed to true!" to arg-1
  50.                         send "&aFlight mode updated"
  51.                 else:
  52.                     send "&cThat player is not online!"
  53.             else:
  54.                 if {flight.%player%} is set:
  55.                     delete {flight.%player%}
  56.                     set player's flight mode to false
  57.                     send "&bYour flight mode was changed to false!"
  58.                     send "&aFlight mode updated"
  59.                 else:
  60.                     set {flight.%player%} to true
  61.                     set player's flight mode to true
  62.                     send "&bYour flight mode was changed to true!"
  63.                     send "&aFlight mode updated"
  64.         else if world is "{@lobby-world}":
  65.             if player has permission "{@fly-permission}":
  66.                 if arg 1 is set:
  67.                     if offlineplayer-arg is online:
  68.                         if {flight.%arg-1%} is set:
  69.                             delete {flight.%arg-1%}
  70.                             set arg-1's flight mode to false
  71.                             send "&bYour flight mode was changed to false!" to arg-1
  72.                             send "&aFlight mode updated"
  73.                         else:
  74.                             set {flight.%arg-1%} to true
  75.                             set arg-1's flight mode to true
  76.                             send "&bYour flight mode was changed to true!" to arg-1
  77.                             send "&aFlight mode updated"
  78.                     else:
  79.                         send "&cThat player is not online!"
  80.                 else:
  81.                     if {flight.%player%} is set:
  82.                         delete {flight.%player%}
  83.                         set player's flight mode to false
  84.                         send "&bYour flight mode was changed to false!"
  85.                         send "&aFlight mode updated"
  86.                     else:
  87.                         set {flight.%player%} to true
  88.                         set player's flight mode to true
  89.                         send "&bYour flight mode was changed to true!"
  90.                         send "&aFlight mode updated"
  91.             else:
  92.                 send "&cInsufficient permissions!"
  93.         else:
  94.             send "&cYou are not the creator of this server."
  95. command /gm [<offline player>] [<text>]:
  96.     trigger:
  97.         if world is "%{server.%player%}%":
  98.             if arg 1 is set:
  99.                 if offlineplayer-arg is online:
  100.                     if arg-1's world is "%{server.%player%}%":
  101.                         if arg 2 is "creative" or "c" or "1":
  102.                             set the arg-1's gamemode to creative
  103.                             send "&fYour gamemode has been updated" to arg-1
  104.                             send "&f%arg-1%'s gamemode has been updated"
  105.                         else if arg 2 is "survival" or "s" or "0":
  106.                             set the arg-1's gamemode to survival
  107.                             send "&fYour gamemode has been updated" to arg-1
  108.                             send "&f%arg-1%'s gamemode has been updated"
  109.                         else if arg 2 is "adventure" or "a" or "2":
  110.                             set the arg-1's gamemode to adventure
  111.                             send "&fYour gamemode has been updated" to arg-1
  112.                             send "&f%arg-1%'s gamemode has been updated"
  113.                         else if arg 2 is "spectator" or "sp" or "3":
  114.                             set the arg-1's gamemode to spectator
  115.                             send "&fYour gamemode has been updated" to arg-1
  116.                             send "&f%arg-1%'s gamemode has been updated"
  117.                         else:
  118.                             send "&fInvalid gamemode: &cCreative/Survival/Adventure/Spectator"
  119.                     else:
  120.                         send "&fThat player is offline!"
  121.                 else:
  122.                     send "&fThat player is offline!"
  123.             else:
  124.                 send "&fUsage: /gm (player) (type)"
  125.         else:
  126.             send "&cI'm sorry, but you do not have permission to perform this command. Please contact the server administrators if you believe that this is in error."
  127. command /bc [<text>]:
  128.     aliases: /broadcast
  129.     trigger:
  130.         if world is "%{server.%player%}%":
  131.             if arg 1 is set:
  132.                 broadcast "&9Broad&ecast&9> &e%arg-1%" to player's world
  133.             else:
  134.                 send "&cProvide a message!"
  135.         else:
  136.             send "&cYou are not the creator of this server."
  137. command /pluginsmenu [<text>]:
  138.     trigger:
  139.         if world is "%{server.%player%}%":
  140.             wait 0.2 seconds
  141.             open chest with 6 rows named "<underline>Plugins" to player
  142.             if {essentials.installed.%{server.%player%}%} is set:
  143.                 format slot 0 of player with bookshelf named "&e<underline>HPE" with lore "&fAKA WorldHost Essentials||&fRemake of Essentials for WorldHost Servers||&fCurrently installed: &aTrue" to close then run [make player execute command "cloud:install_essentials"]
  144.             else:
  145.                 format slot 0 of player with bookshelf named "&e<underline>HPE" with lore "&fAKA WorldHost Essentials||&fRemake of Essentials for WorldHost Servers||&fCurrently installed: &cFalse" to close then run [make player execute command "cloud:install_essentials"]
  146. command /cloud:install_essentials:
  147.     trigger:
  148.         if {essentials.installed.%{server.%player%}%} is set:
  149.             delete {essentials.installed.%{server.%player%}%}
  150.             remove 1 from {installed.%{server.%player%}%}
  151.             send "&9Plu&egins&9> &eEssentials &7has been &cdeleted&7."
  152.             wait 3 seconds
  153.             send "&2&m==================================================="
  154.             send "&7"
  155.             send "&9Plu&egins&9> &7Any plugins installed/deleted may require a restart to take effect."
  156.             send "&9Plu&egins&9> &7As a reminder, &cmore plugins = more lag"
  157.             send "&9Plu&egins&9> &7Restart the server with &e/stop"
  158.             send "&7"
  159.             send "&2&m==================================================="
  160.         else:
  161.             add 1 to {installed.%{server.%player%}%}
  162.             set {essentials.installed.%{server.%player%}%} to true
  163.             send "&9Plu&egins&9> &eEssentials &7has been &ainstalled&7."
  164.             wait 3 seconds
  165.             send "&2&m==================================================="
  166.             send "&7"
  167.             send "&9Plu&egins&9> &7Any plugins installed/deleted may require a restart to take effect."
  168.             send "&9Plu&egins&9> &7As a reminder, &cmore plugins = more lag"
  169.             send "&9Plu&egins&9> &7Restart the server with &e/stop"
  170.             send "&7"
  171.             send "&2&m==================================================="     
  172. command /control [<text>]:
  173.     trigger:
  174.         if world is "%{server.%player%}%":
  175.             open chest with 1 row named "<underline>%{server.%player%}% Control" to player
  176.             format slot 1 of player with minecart named "&ePlugins" with lore "&fCurrently installed||&e%{installed.%{server.%player%}%}%/5" to close then run [make player execute command "pluginsmenu"]
  177.             format slot 3 of player with paper named "&eGamerules" to close then run [make player execute command "gamerulesmenu"]
  178.             format slot 5 of player with command block named "&eReset" with lore "&cWill stop your server||&cCannot be undone" to close then run [make player execute command "reset-world"]
  179.             format slot 7 of player with lava bucket named "&eDelete" with lore "&cCompletely deletes your server||&cCannot be undone||&cName can be taken" to close then run [make player execute command "reset-all"]
  180.             format slot 0 of player with ender pearl named "&eRequest Support" with lore "&fIf you need help" to close then run [make player execute command "support request"]
  181.             format slot 2 of player with grass named "&eNews" with lore "&fSet news" to close then run [make player execute command "news"]
  182.         else if world is "{@lobby-world}":
  183.             send "&fUnknown command. Type ""/help"" for help."
  184.         else:
  185.             send "&cYou are not the creator of this server."
  186. command /support [<text>]:
  187.     trigger:
  188.         if arg 1 is "request":
  189.             if {server.%player%} is set:
  190.                 loop all players:
  191.                     if loop-player has permission "{@support-see}":
  192.                         send "&e%player% &7has requested support on their server &e%{server.%player%}%"
  193.             else:
  194.                 send "&9World&eHost&9> &7You must have a server to use this command."
  195.         else:
  196.             stop
  197. command /whkick [<offline player>] [<text>]:
  198.     trigger:
  199.         if arg 1 is set:
  200.             if offlineplayer-arg is online:
  201.                 if arg 2 is set:
  202.                     send "&c----------------------------" to arg-1
  203.                     send "&fKicked from %players world%: %arg-2%" to arg-1
  204.                     send "&fYou have been connected to the Lobby." to arg-1
  205.                     send "&c----------------------------"
  206.                     execute console command "mvtp %arg-1% {@lobby-world}"
  207.                 else:
  208.                     send "&c----------------------------" to arg-1
  209.                     send "&fKicked from %players world%: No Reason Provided" to arg-1
  210.                     send "&fYou have been connected to the Lobby." to arg-1
  211.                     send "&c----------------------------"
  212.                     execute console command "mvtp %arg-1% {@lobby-world}"
  213.             else:
  214.                 send "&9World&eHost&9> &7That player is not online!"
  215.         else:
  216.             send "&9World&eHost&9> &7Usage: /kick (player) <reason(optional)>"
  217. command /whban [<offline player>] [<text>]:
  218.         if arg 1 is set:
  219.                 if offlineplayer-arg is online:
  220.                         if arg 2 is set:
  221.                         set {banned.%player%.%player's world%} to true
  222.                         set %{ban.reason.%player%.%player's world%}% to "%arg-2%"
  223.                         send "&c----------------------------" to arg-1
  224.                         send "&fBanned from %players world%: %arg-2%" to arg-1
  225.                         send "&fYou have been connected to the Lobby." to arg-1
  226.                         send "&c----------------------------"
  227.                         execute console command "mvtp %arg-1% {@lobby-world}"
  228.                         else:
  229.                         send "&c----------------------------" to arg-1
  230.                         send "&fBanned from %players world%: No Reason Provided" to arg-1
  231.                         send "&fYou have been connected to the Lobby." to arg-1
  232.                         send "&c----------------------------"
  233.                         execute console command "mvtp %arg-1% {@lobby-world}"
  234.                         else:
  235.                 send "&9World&eHost&9> &7That player is not online!"
  236.         else:
  237.                 send "&9World&eHost&9> &7Usage: /kick (player) <reason(optional)>"
  238. command /delete [<offline player>]:
  239.     permission: host.admin
  240.     permission message: &cYou do not have permission.
  241.     trigger:
  242.         if arg 1 is set:
  243.             if offlineplayer-arg is offline:
  244.                 stop
  245.             else:
  246.                 execute console command "mvdelete %{server.%player%}%"
  247.                 execute console command "mvconfirm"
  248.                 delete {news.%{server.%player%}%}
  249.                 delete {joinmessage.%{server.%player%}%}
  250.                 delete {server.strike.%{server.%player%}%}
  251.                 delete {name.%{server.%player%}%}
  252.                 delete {server.%player%}
  253.                 delete {players.%arg-1%}
  254. command /create:
  255.     trigger:
  256.         world is "{@lobby-world}":
  257.             if arg 1 is set:
  258.                 if {server.%player%} is not set:
  259.                     if {access.%player%} is not set: #Change later
  260.                     send "&9World&eHost&9> &7Creating your server."
  261.                     send "&9World&eHost&9> &7This may take a few moments..."
  262.                     execute console command "mvcreate %player% normal -t flat"
  263.                     wait 3 seconds
  264.                     set {server.%player%} to "%player%"
  265.                     set {name.%arg-1%} to true
  266.                     make player execute command "join %player%"
  267.                     else:
  268.                     stop
  269.                     else:
  270.                         send "&9World&eHost&9> &7A server already exists by that name."
  271.                 else:
  272.                     send "&9World&eHost&9> &cYou already have a server!"
  273.             else:
  274.                 send "&9World&eHost&9> &7Usage: /create"
  275.         else:
  276.             send "&fUnknown command. Type ""/help"" for help."
  277. command /setmotd [<text>]:
  278.     trigger:
  279.         if {server.%player%} is set:
  280.             if world is "%{server.%player%}%":
  281.                 send "&9Motd> &7Your server MOTD has been updated to &e%arg-1%&7."
  282.                 set {motd.%{server.%player%}%} to "%arg-1%"
  283.                 wait 2 seconds
  284.                 send "&2&m======================================="
  285.                 send "&7"
  286.                 send "&9Restart> &7You may have to restart for any changes!"
  287.                 send "&7"
  288.                 send "&2&m======================================="
  289. command /join [<text>]:
  290.     trigger:
  291.         world is "{@lobby-world}":
  292.             if arg 1 is set:
  293.                 if {name.%arg-1%} is true:
  294.                     if arg-1 is "%{server.%player%}%":
  295.                         loop all players:
  296.                             if {banned.%player%.%arg-1%} is not set:
  297.                                 if {players.%arg-1%} is greater than 0:
  298.                                     send "&9World&eHost&9> &7Sending you to your requested server..." to player
  299.                                     execute console command "mvtp %player% %arg-1%"
  300.                                     add 1 to {players.%{server.%player%}%}
  301.                                     send "&2&m===================================" to player
  302.                                     send "&7" to player
  303.                                     send "&9Server> &7Welcome to your &aFree Server&7, provided by WorldHost!" to player
  304.                                     send "&9Server Notes> &7None!" to player
  305.                                     if {server.strike.%{server.%player%}%} is set:
  306.                                         send "&9Server Strikes> &e%{server.strike.%{server.%player%}%}%/5" to player
  307.                                     else:
  308.                                         send "&9Server Strikes> &70" to player
  309.                                         send "&7" to player
  310.                                         send "&2&m===============================" to player
  311.                                 else:
  312.                                     send "&9World&eHost&9> &7Your requested server is starting up..."
  313.                                     send "&9World&eHost&9> &7This may take a few moments..."
  314.                                     if {loading.%player%} is true:
  315.                                         execute console command "mvunload %arg-1%"
  316.                                         ban the player due to "&cYou have been temporarily blacklisted from WorldHost%nl%&6Expires in 5 minutes%nl%&fReason: &bSpamming Join Command, attempting to crash software%nl%&bStaff: &eSentry"
  317.                                         wait 5 minutes
  318.                                         execute console command "pardon %player%"
  319.                                     else:
  320.                                         set {loading.%player%} to true
  321.                                         wait 2 seconds
  322.                                         execute console command "mvload %arg-1%"
  323.                                         set {loading.%player%} to true
  324.                                         send "&9Loading> &7Loading.."
  325.                                         wait 1 second
  326.                                         send "&9Loading> &7Loading..."
  327.                                         wait 1 second
  328.                                         send "&9Loading> &7Loading..."
  329.                                         wait 1 second
  330.                                         send "&9Loading> &7Loading..."
  331.                                         wait 1 second
  332.                                         send "&9Loading> &7Loading..."
  333.                                         wait 1 second
  334.                                         send "&9Loading> &7Loading..."
  335.                                         wait 1 second
  336.                                         send "&9Loading> &7Loading..."
  337.                                         wait 5 seconds
  338.                                         send "&9World&eHost&9> &7Sending you to your requested server."
  339.                                         execute console command "mvtp %player% %arg-1%"
  340.                                         add 1 to {players.%arg-1%}
  341.                                         add 1 to {total.%arg-1%}
  342.                                         delete {loading.%player%}
  343.                                         if {joinmessage.%arg-1%} is true:
  344.                                             broadcast "&e%player% joined the game." to player's world
  345.                         else:
  346.                             loop all players:
  347.                                 if {players.%arg-1%} is greater than 0:
  348.                                     send "&9World&eHost&9> &7Sending you to your requested server..." to player
  349.                                     execute console command "mvtp %player% %arg-1%"
  350.                                     add 1 to {players.%{server.%player%}%}
  351.                                     send "&2&m===================================" to player
  352.                                     send "&7" to player
  353.                                     send "&9Server> &7Welcome to your &aFree Server&7, provided by WorldHost!" to player
  354.                                     send "&9Server Notes> &7None!" to player
  355.                                     if {server.strike.%{server.%player%}%} is set:
  356.                                         send "&9Server Strikes> &e%{server.strike.%{server.%player%}%}%/5" to player
  357.                                     else:
  358.                                         send "&9Server Strikes> &70" to player
  359.                                         send "&7" to player
  360.                                         send "&2&m===============================" to players
  361.                                 else:
  362.                                     send "&9World&eHost&9> &7Your requested server is starting up..."
  363.                                     send "&9World&eHost&9> &7This may take a few moments..."
  364.                                     if {loading.%player%} is true:
  365.                                         execute console command "mvunload %arg-1%"
  366.                                         ban the player due to "&cYou have been temporarily blacklisted from WorldHost%nl%&6Expires in 5 minutes%nl%&fReason: &bSpamming Join Command, attempting to crash software%nl%&bStaff: &eSentry"
  367.                                         wait 5 minutes
  368.                                         execute console command "pardon %player%"
  369.                                     else:
  370.                                         set {loading.%player%} to true
  371.                                         wait 2 seconds
  372.                                         execute console command "mvload %arg-1%"
  373.                                         set {loading.%player%} to true
  374.                                         send "&9Loading> &7Loading..."
  375.                                         wait 1 second
  376.                                         send "&9Loading> &7Loading..."
  377.                                         wait 1 second
  378.                                         send "&9Loading> &7Loading..."
  379.                                         wait 1 second
  380.                                         send "&9Loading> &7Loading..."
  381.                                         wait 1 second
  382.                                         send "&9Loading> &7Loading..."
  383.                                         wait 1 second
  384.                                         send "&9Loading> &7Loading..."
  385.                                         wait 1 second
  386.                                         send "&9Loading> &7Loading..."
  387.                                         wait 5 seconds
  388.                                         send "&9World&eHost&9> &7Sending you to your requested server."
  389.                                         execute console command "mvtp %player% %arg-1%"
  390.                                         add 1 to {players.%arg-1%}
  391.                                         add 1 to {total.%arg-1%}
  392.                                         delete {loading.%player%}
  393.                                         if {joinmessage.%arg-1%} is true:
  394.                                             broadcast "&e%player% joined the game." to player's world
  395.                             else:
  396.                                 send "&c----------------------------"
  397.                                 send "&fKicked while connecting: You're banned!"
  398.                                 send "&fReason: %{ban.reason.%player%.%arg-1%}%"
  399.                                 send "&c----------------------------"
  400.                     else:
  401.                         send "&9World&eHost&9> &7No server exists by the name &e%arg-1%&7."
  402.             else:
  403.                 send "&fUnknown command. Type ""/help"" for help."
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement