I have a question and although I have no error with my script
But with the motd is not displayed anyway!
Here is the code for help!
But with the motd is not displayed anyway!
Here is the code for help!
Code:
#WartungsSystem
command /Wartung [<text>]:
aliases: wartungen
permission: sk.Wartung
permission message: {@noperm}
trigger:
if arg 1 is "an":
message "{@Prefix} &7Der Server ist nun in &4Wartung!" to player
set {Wartung} to true
stop
if arg 1 is "aus":
message "{@Prefix} &7Der Server ist nun nicht mehr in &4Wartung!" to player
set {Wartung} to false
stop
if arg-1 is not set:
message "{@Prefix} &cBenütze: /Wartung <an/aus>" to player
on connect:
{Wartung} is 1
player doesn't have permission "sk.wartungbypass"
kick player due to "{@prefix} &7Der Server ist in &4Wartungen!"
on server list ping:
if {Wartung} is 0:
set motd to "&8&l» &6&lFAST&e&lDEVS&f&l.DE &8&l* &cSkyPvP &7mit &4Herz &e[&b1.8 - 1.8.9&e] &8&l« &8&l» &c&lJEDEN &4&lSAMSTAG &c&lEVENT! &8&l« "
else if {Wartung} is 1:
set motd to "&6&lFAST&e&lDEVS&f&l.DE &8● &7Dein &eSkyPvP &7Server &8┃ &e1&8.&e8&8-&e1&8.&e8&8.&e9 &a&b&c &8» &4Wartungen &8... «"