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.

Indentation Error: Expected 5 tab, but found 20 spaces. HELP!

Discussion in 'Skript' started by BlackVen4m, Jul 19, 2021.

Thread Status:
Not open for further replies.
  1. BlackVen4m

    BlackVen4m New Member

    Joined:
    Jul 19, 2021
    Messages:
    7
    Likes Received:
    0
    Code (Text):
    1. command /tempban [<Offlineplayer>] [<Text>] [<Text>]:
    2.     trigger:
    3.         if player has permission "{tempban.blockmcadmin}":
    4.             if arg 1 is set:
    5.                 if arg 2 is set:
    6.                     set {banned.%arg 1%} to true
    7.                     set {ban.time.%arg 1%} to now
    8.                     set {ban.reason.%arg 1%} to argument-3
    9.                     set {ban.expire.%arg 1%} to argument-2
    10.                     set {ban.bannedby.%arg 1%} to player
    11.                     set {BanIP.%arg 1%} to "False"
    12.                     kick arg 1 due to "&7Banned for &c%arg 2% &7by &c%player%"
    13.                     ban arg 1 due to "&7Banned for &c%arg 2% &7by &c%player%"
    14.                     message "&7[&cBlockMC Admin&7] &a&l====== Kitiltás ======" to all players
    15.                     message "&7[&cBlockMC Admin&7] &6%arg-1% &eki lett tilva &6%player% &eáltal." to all players
    16.                     message "&7[&cBlockMC Admin&7] &eIndok: &6%arg-3%" to all players
    17.                     message "&7[&cBlockMC Admin&7] &eIdő: &6%arg-2%" to all players
    18.                 else:
    19.                     send "&7[&cBlockMC Admin&7] &a/Ban <Játékos> <Idő> <Indok>"
    20.             else:
    21.                 send "&7[&cBlockMC Admin&7] &a/Ban <Játékos> <Idő> <Indok>"
    22.         else:
    23.             send "&7[&cBlockMC Admin&7] &aNincs jogusultságod ehez!"
    When I reload the skript gives me 3 errors and I don't know how to fix it: (Sorry for the language of the messages, It means you were banned by %player%)


    Indentation Error: Expected 5 tab, but found 20 spaces
    (admin.sk, line 132:
    message "&7[&cBlockMC Admin&7] &6%arg-1% &eki lett tilva &6%player% &eáltal." to all players

    Indentation Error: Expected 5 tab, but found 20 spaces
    (admin.sk, line 133:
    message "&7[&cBlockMC Admin&7] &6%arg-1% &eki lett tilva &6%player% &eáltal." to all players

    Indentation Error: Expected 5 tab, but found 20 spaces
    (admin.sk, line 134:
    message "&7[&cBlockMC Admin&7] &6%arg-1% &eki lett tilva &6%player% &eáltal." to all players
     
  2. Minecoll_YT

    Supporter Forums Helper

    Joined:
    Dec 2, 2018
    Messages:
    650
    Likes Received:
    39
    The error is literally your solution.
     
Thread Status:
Not open for further replies.

Share This Page

Loading...