WartungsSystem funktioniert nicht!

  • Welcome to skUnity!

    Welcome to skUnity! This is a forum where members of the Skript community can communicate and interact. Skript Resource Creators can post their Resources for all to see and use.

    If you haven't done so already, feel free to join our official Discord server to expand your level of interaction with the comminuty!

    Now, what are you waiting for? Join the community now!

  • LOOKING FOR A VERSION OF SKRIPT?

    You can always check out skUnity Downloads for downloads and any other information about Skript!

Status
Not open for further replies.

florian fangl

Member
Feb 3, 2019
4
0
0
23
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!

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... «"
 
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!
Try this:

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 true:
        player doesn't have permission "sk.wartungbypass":
            kick player due to "{@prefix} &7Der Server ist in &4Wartungen!"

on server list ping:
    if {Wartung} is false:
        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:
        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... «"
 
Try this:

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 true:
        player doesn't have permission "sk.wartungbypass":
            kick player due to "{@prefix} &7Der Server ist in &4Wartungen!"

on server list ping:
    if {Wartung} is false:
        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:
        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... «"
It doesnt't working!
 
Status
Not open for further replies.