1. 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!

  2. LOOKING FOR A VERSION OF SKRIPT?

    You can always check out our Wiki for downloads and any other information about Skript!

Dismiss Notice
This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Santions plugin

Discussion in 'Skript' started by DAVIREP, Sep 15, 2020.

Tags:
Thread Status:
Not open for further replies.
  1. DAVIREP

    DAVIREP Member

    Joined:
    Apr 11, 2020
    Messages:
    1
    Likes Received:
    0
    hi, im creating a plugin that create logs of Bans, Mutes and Warns but i have a problem, it says to me "wf "Sanciones:" is boolean (yes/no)"
    here is the code:
    PD: im using SkUtilities
    Code (Text):
    1. on load:
    2.  
    3.     folder "plugins/NinjaCore" does not exist:
    4.         create folder "plugins/NinjaCore"
    5.     folder "plugins/NinjaCore/Userlogs" does not exist:
    6.         create folder "plugins/NinjaCore/Userlogs"
    7.        
    8. on join:
    9.     file "plugins/NinjaCore/Userlogs/%player%.ninjacore" does not exist:
    10.         create folder "plugins/NinjaCore/Userlogs/%player%.ninjacore"
    11.         wf "Sanciones:"
    12.         wf "    Total:"
    13.         wf "        En total, %player% tiene estas sanciones(abajo se aclara mas!): {sanciones %arg-1%::*}"
    14.         wf "    Baneos:"
    15.         wf "        %player% fue baneado por {sanciones %arg-1%::bans}"
    16.         wf "    Muteos:"
    17.         wf "        %player% fue muteado por {sanciones %arg-1%::mutes}"
    18.         wf "    Warns:"
    19.         wf "        %player% fue warneado por {sanciones %arg-1%::warns}"
    20.  
    21.  
    22. command /sancion <player> <text>:
    23.     trigger:
    24.         if arg-1 is "xray":
    25.             player has permission "Staff.staff":
    26.                 make player execute command "/tempbanip %arg-1% 30d XRay"
    27.                 add "XRay" to {sanciones %arg-1%::bans}
    28.             else:
    29.                 send "Ahora mismo aviso a un staff" to player
    30.                 loop all players:
    31.                     loop-player has permission "Staff.staff":
    32.                         send "&8[&7Ninja&eCore&8]&c %player% ha intentado sancionar a alguien!" to loop-player
    33.         else if arg-1 is "xrayadmitido":
    34.             player has permission "Staff.staff":
    35.                 make player execute command "/tempbanip %arg-1% 20d XRay(Admitido)"
    36.                 add "XRay(Admitido)" to {sanciones %arg-1%::bans}
    37.             else:
    38.                 send "Ahora mismo aviso a un staff" to player
    39.                 loop all players:
    40.                     loop-player has permission "Staff.staff":
    41.                         send "&8[&7Ninja&eCore&8]&c %player% ha intentado sancionar a alguien!" to loop-player
    42.         else if arg-1 is "hacks":
    43.             player has permission "Staff.staff":
    44.                 make player execute command "/tempbanip %arg-1% 120d &a&l>&2&l>&f&lUso de Hacks&2&l<&a&l<"
    45.                 add "Hacked Client" to {sanciones %arg-1%::bans}
    46.             else:
    47.                 send "Ahora mismo aviso a un staff" to player
    48.                 loop all players:
    49.                     loop-player has permission "Staff.staff":
    50.                         send "&8[&7Ninja&eCore&8]&c %player% ha intentado sancionar a alguien!" to loop-player
    51.         else if arg-1 is "hacksadmitido":
    52.             player has permission "Staff.staff":
    53.                 make player execute command "/tempbanip %arg-1% 60d &5&lAdmitido &a&l>&2&l>&f&lUso de Hacks&2&l<&a&l< &5&lAdmitido"
    54.                 add "Hacked Client(Admitido)" to {sanciones %arg-1%::bans}
    55.             else:
    56.                 send "Ahora mismo aviso a un staff" to player
    57.                 loop all players:
    58.                     loop-player has permission "Staff.staff":
    59.                         send "&8[&7Ninja&eCore&8]&c %player% ha intentado sancionar a alguien!" to loop-player
    60.         else if arg-1 is "insultos":
    61.             player has permission "Staff.staff":
    62.                 make player execute command "/tempmute %arg-1% 30m Insultos a la comunidad"
    63.                 add "Insultos a la comunidad" to {sanciones %arg-1%::mutes}
    64.             else:
    65.                 send "Ahora mismo aviso a un staff" to player
    66.                 loop all players:
    67.                     loop-player has permission "Staff.staff":
    68.                         send "&8[&7Ninja&eCore&8]&c %player% ha intentado sancionar a alguien!" to loop-player
    69.         else if arg-1 is "insultosstaff":
    70.             player has permission "Staff.staff":
    71.                 make player execute command "/tempmute %arg-1% 1h Insultos al staff"
    72.                 add "Insultos al staff" to {sanciones %arg-1%::mutes}
    73.             else:
    74.                 send "Ahora mismo aviso a un staff" to player
    75.                 loop all players:
    76.                     loop-player has permission "Staff.staff":
    77.                         send "&8[&7Ninja&eCore&8]&c %player% ha intentado sancionar a alguien!" to loop-player
    78.         else if arg-1 is "ipajena":
    79.             player has permission "Staff.staff":
    80.                 make player execute command "/banip %arg-1% Publicar IP ajena"
    81.                 add "Publicar IP ajena" to {sanciones %arg-1%::bans}
    82.             else:
    83.                 send "Ahora mismo aviso a un staff" to player
    84.                 loop all players:
    85.                     loop-player has permission "Staff.staff":
    86.                         send "&8[&7Ninja&eCore&8]&c %player% ha intentado sancionar a alguien!" to loop-player
    87.         else:
    88.             if player has permission "Staff.staff":
    89.                 send "&8[&7Ninja&eCore&8] &aLas posibles sanciones son:&c hacks, hacksadmitido, xray, xrayadmitido, ipajena, insultos, insultosstaff" to player
    90.                 send "&8[&7Ninja&eCore&8] &aSugiere mas en el discord del creador"
    91.             else:
    92.                 send "&8[&7Ninja&eCore&8] &cNo tienes permisos" to player
    93.  
    94.  
    95. command /quitarsancion <player> <text>:
    96.     trigger:
    97.         if arg-1 is "xray":
    98.             player has permission "Staff.staff":
    99.                 make player execute command "/unbanip %arg-1%"
    100.                 add "- XRay" to {sanciones %arg-1%::bans}
    101.             else:
    102.                 send "Ahora mismo aviso a un staff" to player
    103.                 loop all players:
    104.                     loop-player has permission "Staff.staff":
    105.                         send "&8[&7Ninja&eCore&8]&c %player% ha intentado quitar la sancion a alguien!" to loop-player
    106.         else if arg-1 is "xrayadmitido":
    107.             player has permission "Staff.staff":
    108.                 make player execute command "/unbanip %arg-1%"
    109.                 add "- XRay(Admitido)" to {sanciones %arg-1%::bans}
    110.             else:
    111.                 send "Ahora mismo aviso a un staff" to player
    112.                 loop all players:
    113.                     loop-player has permission "Staff.staff":
    114.                         send "&8[&7Ninja&eCore&8]&c %player% ha intentado quitar la sancion a alguien!" to loop-player
    115.         else if arg-1 is "hacks":
    116.             player has permission "Staff.staff":
    117.                 make player execute command "/unbanip %arg-1%"
    118.                 add "- Hacked Client" to {sanciones %arg-1%::bans}
    119.             else:
    120.                 send "Ahora mismo aviso a un staff" to player
    121.                 loop all players:
    122.                     loop-player has permission "Staff.staff":
    123.                         send "&8[&7Ninja&eCore&8]&c %player% ha intentado quitar la sancion a alguien!" to loop-player
    124.         else if arg-1 is "hacksadmitido":
    125.             player has permission "Staff.staff":
    126.                 make player execute command "/unbanip %arg-1%"
    127.                 add "- Hacked Client(Admitido)" to {sanciones %arg-1%::bans}
    128.             else:
    129.                 send "Ahora mismo aviso a un staff" to player
    130.                 loop all players:
    131.                     loop-player has permission "Staff.staff":
    132.                         send "&8[&7Ninja&eCore&8]&c %player% ha intentado quitar la sancion a alguien!" to loop-player
    133.         else if arg-1 is "insultos":
    134.             player has permission "Staff.staff":
    135.                 make player execute command "/unmute %arg-1%"
    136.                 add "- Insultos a la comunidad" to {sanciones %arg-1%::mutes}
    137.             else:
    138.                 send "Ahora mismo aviso a un staff" to player
    139.                 loop all players:
    140.                     loop-player has permission "Staff.staff":
    141.                         send "&8[&7Ninja&eCore&8]&c %player% ha intentado sancionar a alguien!" to loop-player
    142.         else if arg-1 is "insultosstaff":
    143.             player has permission "Staff.staff":
    144.                 make player execute command "/unmute %arg-1%"
    145.                 add "- Insultos al staff" to {sanciones %arg-1%::mutes}
    146.             else:
    147.                 send "Ahora mismo aviso a un staff" to player
    148.                 loop all players:
    149.                     loop-player has permission "Staff.staff":
    150.                         send "&8[&7Ninja&eCore&8]&c %player% ha intentado sancionar a alguien!" to loop-player
    151.         else if arg-1 is "ipajena":
    152.             player has permission "Staff.staff":
    153.                 make player execute command "/unbanip %arg-1%"
    154.                 add "- Publicar IP ajena (%player%)" to {sanciones %arg-1%::bans}
    155.             else:
    156.                 send "Ahora mismo aviso a un staff" to player
    157.                 loop all players:
    158.                     loop-player has permission "Staff.staff":
    159.                         send "&8[&7Ninja&eCore&8]&c %player% ha intentado sancionar a alguien!" to loop-player
    160.         else:
    161.             if player has permission "Staff.staff":
    162.                 send "&8[&7Ninja&eCore&8] &aLas posibles sanciones son:&c hacks, hacksadmitido, xray, xrayadmitido, ipajena, insultos, insultosstaff" to player
    163.                 send "&8[&7Ninja&eCore&8] &aSugiere mas en el discord del creador"
    164.             else:
    165.                 send "&8[&7Ninja&eCore&8] &cNo tienes permisos" to player
    And the console quest me if is a boolean in all of "wf", i dont understand
     
Thread Status:
Not open for further replies.

Share This Page

Loading...