Update 'HelixuAddons.sk'
This commit is contained in:
parent
ece3e6e34e
commit
0f07ec7d3c
1 changed files with 69 additions and 19 deletions
|
@ -21,17 +21,6 @@ command /hub:
|
||||||
teleport player to location of {spawnlocation}
|
teleport player to location of {spawnlocation}
|
||||||
message "&6Teleported you to spawn!"
|
message "&6Teleported you to spawn!"
|
||||||
|
|
||||||
command /setdungeontp:
|
|
||||||
permission: op
|
|
||||||
trigger:
|
|
||||||
set {dungeonspawn} to location of player
|
|
||||||
message "&3Dungeon spawn location set at &c%{dungeonspawn}%"
|
|
||||||
|
|
||||||
command /dungeon:
|
|
||||||
trigger:
|
|
||||||
teleport player to location of {dungeonspawn}
|
|
||||||
message "&6Teleported to the Dungeon."
|
|
||||||
|
|
||||||
command /gameupdate:
|
command /gameupdate:
|
||||||
permission: helixu.gameupdate
|
permission: helixu.gameupdate
|
||||||
trigger:
|
trigger:
|
||||||
|
@ -53,19 +42,18 @@ command /gameupdate:
|
||||||
wait 1 seconds
|
wait 1 seconds
|
||||||
broadcast "&eThis server will restart in &c&l1"
|
broadcast "&eThis server will restart in &c&l1"
|
||||||
wait 1 seconds
|
wait 1 seconds
|
||||||
loop all players:
|
make console execute command "/kickall &cThe Server is restarting, join back in around 30 seconds."
|
||||||
kick loop-player due to "&cThe Server is restarting, join back in around 30 seconds."
|
make console execute command "reload confirm"
|
||||||
make console execute command "stop"
|
|
||||||
|
|
||||||
command /srestart:
|
command /maintenance:
|
||||||
permission: helixu.srestart
|
permission: helixu.srestart
|
||||||
trigger:
|
trigger:
|
||||||
broadcast "&eThis server will restart soon: &bForced Reboot"
|
broadcast "&eThis server will restart soon: &bMaintenance"
|
||||||
broadcast "&eYou have &a30 seconds &eto brace yourself!"
|
broadcast "&eYou have &a30 seconds &eto brace yourself!"
|
||||||
loop all players:
|
loop all players:
|
||||||
send title "&e&lSERVER REBOOT!" with subtitle "&aForced Reboot &7(in &e30s&7)" to loop-player
|
send title "&e&lSERVER REBOOT!" with subtitle "&aMaintenance &7(in &e30s&7)" to loop-player
|
||||||
wait 20 seconds
|
wait 20 seconds
|
||||||
broadcast "&eThis server will restart soon: &bForced Reboot"
|
broadcast "&eThis server will restart soon: &bMaintenance"
|
||||||
broadcast "&c&lIn 10 seconds!"
|
broadcast "&c&lIn 10 seconds!"
|
||||||
wait 5 seconds
|
wait 5 seconds
|
||||||
broadcast "&eThis server will restart in &c&l5"
|
broadcast "&eThis server will restart in &c&l5"
|
||||||
|
@ -79,9 +67,11 @@ command /srestart:
|
||||||
broadcast "&eThis server will restart in &c&l1"
|
broadcast "&eThis server will restart in &c&l1"
|
||||||
wait 1 seconds
|
wait 1 seconds
|
||||||
loop all players:
|
loop all players:
|
||||||
kick loop-player due to "&cThe Server is restarting, join back in around 30 seconds."
|
kick loop-player due to "&cThe Server is going down for maintenance, check ##status-updates for more information."
|
||||||
make console execute command "stop"
|
make console execute command "stop"
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
on load:
|
on load:
|
||||||
wait 2 hours
|
wait 2 hours
|
||||||
broadcast "&eThis server will restart soon: &bScheduled Reboot"
|
broadcast "&eThis server will restart soon: &bScheduled Reboot"
|
||||||
|
@ -127,6 +117,7 @@ on quit:
|
||||||
send "&b[STAFF] &e%player's prefix%%player's name% &eleft." to loop-player
|
send "&b[STAFF] &e%player's prefix%%player's name% &eleft." to loop-player
|
||||||
|
|
||||||
command /o [<text>]:
|
command /o [<text>]:
|
||||||
|
aliases: /staffchat
|
||||||
permission: helixu.staffchat
|
permission: helixu.staffchat
|
||||||
trigger:
|
trigger:
|
||||||
loop all players:
|
loop all players:
|
||||||
|
@ -143,3 +134,62 @@ command /push [<player>]:
|
||||||
push arg-1 backwards at speed 2
|
push arg-1 backwards at speed 2
|
||||||
send "&6Player has been pushed!" to player
|
send "&6Player has been pushed!" to player
|
||||||
|
|
||||||
|
on join:
|
||||||
|
if player has permission "helixu.autorgbypass":
|
||||||
|
make player execute command "/rg bypass"
|
||||||
|
|
||||||
|
on load:
|
||||||
|
loop all players:
|
||||||
|
if loop-player has permission "helixu.staffchat":
|
||||||
|
send "&b[STAFF] &cHelixuAddons&f: HelixuAddons by Helixu##1111 loaded!" to loop-player
|
||||||
|
|
||||||
|
|
||||||
|
command /stafftodo [<text>]:
|
||||||
|
permission: helixu.admin
|
||||||
|
trigger:
|
||||||
|
send "&b[STAFF] &fSet the MOTD to '%argument%<reset>'" to player
|
||||||
|
set {todo} to "&b[STAFF] %argument%"
|
||||||
|
|
||||||
|
command /showtodo:
|
||||||
|
permission: helixu.admin
|
||||||
|
trigger:
|
||||||
|
send {todo} to player
|
||||||
|
|
||||||
|
on join:
|
||||||
|
if player has permission "helixu.staffchat":
|
||||||
|
send {todo} to player
|
||||||
|
|
||||||
|
command /maintenancemode [<text>]:
|
||||||
|
aliases: /mm
|
||||||
|
permission: helixu.maintenancemode
|
||||||
|
permission message: &cYou just got daewoo espero'd
|
||||||
|
trigger:
|
||||||
|
if arg 1 is "on":
|
||||||
|
if {mm} is not set:
|
||||||
|
set {mm} to true
|
||||||
|
broadcast "&aMaintenance Mode enabled"
|
||||||
|
loop all players:
|
||||||
|
if loop-player does not have permission "helixu.maintenancemode":
|
||||||
|
kick loop-player due to "&cMaintenance Mode was enabled. The server is closed to non-staff."
|
||||||
|
stop
|
||||||
|
send "&cMaintenance Mode is already enabled."
|
||||||
|
else if arg 1 is "off":
|
||||||
|
if {mm} is set:
|
||||||
|
delete {mm}
|
||||||
|
broadcast "&cMaintenance Mode disabled."
|
||||||
|
stop
|
||||||
|
send "&cMaintenance Mode is already off."
|
||||||
|
else:
|
||||||
|
send "&cUsage: /maintenancemode (on/off)"
|
||||||
|
|
||||||
|
on connect:
|
||||||
|
if {mm} is set:
|
||||||
|
if player does not have permission "helixu.maintenancemode":
|
||||||
|
kick the player due to "&cMaintenance Mode is enabled."
|
||||||
|
|
||||||
|
on server ping:
|
||||||
|
if {mm} is set:
|
||||||
|
set motd to "&cMaintenance Mode."
|
||||||
|
stop
|
||||||
|
if {mm} is not set:
|
||||||
|
set motd to "&cLads Factions &6| &dDaewoo Espero nation"
|
||||||
|
|
Loading…
Reference in a new issue