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.

Error?!?

Discussion in 'Skript' started by zNqzy, Apr 25, 2019.

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

    zNqzy Member

    Joined:
    Apr 22, 2019
    Messages:
    12
    Likes Received:
    0
    Code (Text):
    1. [15:40:36 INFO]: [Skript] Reloading the config and all scripts...
    2. [15:40:36 INFO]: Loaded a total of 11504 english aliases
    3. [15:40:37 WARN]: There are no aliases defined for the following ids: 165, 166, 167, 168, 169, 176, 177, 178, 179, 180, 181, 182, 183, 184, 185, 186, 187, 188, 189, 190, 191, 192, 193, 194, 195, 196, 197, 409, 410, 411, 412, 413, 414, 415, 416, 423, 424, 425, 427, 428, 429, 430, 431
    4. [15:40:37 INFO]: All scripts loaded without errors.
    5. [15:40:37 WARN]: Unexpected exception while parsing console command "sk reload all"
    6. org.bukkit.command.CommandException: Unhandled exception executing command 'sk' in plugin Skript v2.1.2
    7.         at org.bukkit.command.PluginCommand.execute(PluginCommand.java:46) ~[spigot.jar:git-Spigot-db6de12-18fbb24]
    8.         at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:141) ~[spigot.jar:git-Spigot-db6de12-18fbb24]
    9.         at org.bukkit.craftbukkit.v1_8_R3.CraftServer.dispatchCommand(CraftServer.java:641) ~[spigot.jar:git-Spigot-db6de12-18fbb24]
    10.         at org.bukkit.craftbukkit.v1_8_R3.CraftServer.dispatchServerCommand(CraftServer.java:627) [spigot.jar:git-Spigot-db6de12-18fbb24]
    11.         at net.minecraft.server.v1_8_R3.DedicatedServer.aO(DedicatedServer.java:412) [spigot.jar:git-Spigot-db6de12-18fbb24]
    12.         at net.minecraft.server.v1_8_R3.DedicatedServer.B(DedicatedServer.java:375) [spigot.jar:git-Spigot-db6de12-18fbb24]
    13.         at net.minecraft.server.v1_8_R3.MinecraftServer.A(MinecraftServer.java:654) [spigot.jar:git-Spigot-db6de12-18fbb24]
    14.         at net.minecraft.server.v1_8_R3.MinecraftServer.run(MinecraftServer.java:557) [spigot.jar:git-Spigot-db6de12-18fbb24]
    15.         at java.lang.Thread.run(Unknown Source) [?:1.8.0_201]
    16. Caused by: java.lang.NoSuchMethodError: com.sk89q.worldguard.protection.flags.DefaultFlag.fuzzyMatchFlag(Ljava/lang/String;)Lcom/sk89q/worldguard/protection/flags/Flag;
    17.         at uk.co.umbaska.Managers.Enums$6.parse(Enums.java:265) ~[?:?]
    18.         at uk.co.umbaska.Managers.Enums$6.parse(Enums.java:262) ~[?:?]
    19.         at ch.njol.skript.registrations.Classes.parseSimple(Classes.java:398) ~[?:?]
    20.         at ch.njol.skript.registrations.Classes.parse(Classes.java:427) ~[?:?]
    21.         at ch.njol.skript.lang.UnparsedLiteral.getConvertedExpression(UnparsedLiteral.java:97) ~[?:?]
    22.         at ch.njol.skript.lang.UnparsedLiteral.getConvertedExpression(UnparsedLiteral.java:86) ~[?:?]
    23.         at ch.njol.skript.lang.UnparsedLiteral.getConvertedExpression(UnparsedLiteral.java:1) ~[?:?]
    24.         at ch.njol.skript.conditions.CondCompare.init(CondCompare.java:174) ~[?:?]
    25.         at ch.njol.skript.conditions.CondCompare.init(CondCompare.java:126) ~[?:?]
    26.         at ch.njol.skript.lang.SkriptParser.parse(SkriptParser.java:237) ~[?:?]
    27.         at ch.njol.skript.lang.SkriptParser.parse(SkriptParser.java:164) ~[?:?]
    28.         at ch.njol.skript.lang.Condition.parse(Condition.java:80) ~[?:?]
    29.         at ch.njol.skript.ScriptLoader.loadItems(ScriptLoader.java:694) ~[?:?]
    30.         at ch.njol.skript.lang.TriggerSection.<init>(TriggerSection.java:55) ~[?:?]
    31.         at ch.njol.skript.lang.Conditional.<init>(Conditional.java:44) ~[?:?]
    32.         at ch.njol.skript.ScriptLoader.loadItems(ScriptLoader.java:701) ~[?:?]
    33.         at ch.njol.skript.command.Commands.loadCommand(Commands.java:449) ~[?:?]
    34.         at ch.njol.skript.ScriptLoader.loadScript(ScriptLoader.java:462) ~[?:?]
    35.         at ch.njol.skript.ScriptLoader.loadScripts(ScriptLoader.java:239) ~[?:?]
    36.         at ch.njol.skript.ScriptLoader.loadScripts(ScriptLoader.java:193) ~[?:?]
    37.         at ch.njol.skript.Skript.reload(Skript.java:548) ~[?:?]
    38.         at ch.njol.skript.SkriptCommand.onCommand(SkriptCommand.java:130) ~[?:?]
    39.         at org.bukkit.command.PluginCommand.execute(PluginCommand.java:44) ~[spigot.jar:git-Spigot-db6de12-18fbb24]
    40.         ... 8 more
    upload_2019-4-25_15-40-3.png
    --- Double Post Merged, Apr 25, 2019, Original Post Date: Apr 25, 2019 ---
    Code (Text):
    1. options:
    2.     P: &7&l[&4&lTwo&c&lHit&7&l] &8»
    3.  
    4. command /twohit [<text>] [<offlineplayer>]:
    5.     trigger:
    6.         if arg-1 is "setspawn":
    7.             if player has permission "twohit.admin":
    8.                 set {twohit.spawn} to location of player
    9.                 send "{@P} &7Du hast den &9Spawn von &4Two&cHit &7gesetzt!" to player              
    10.         if arg-1 is "setlobby":
    11.             if player has permission "twohit.admin":
    12.                 set {twohit.lobby} to location of player
    13.                 send "{@P} &7Du hast die &9Lobby von &4Two&cHit &7gesetzt!" to player      
    14.         if arg-1 is "ressetingstats":
    15.             if arg-2 is not set:
    16.                 set {TwoHit.Deaths.%player%} to 0
    17.                 set {TwoHit.Kills.%player%} to 0
    18.                 set {TwoHit.Killstreak.%player%} to 0
    19.                 send "{@P} &7Du hast &aerfolgreich &7deine Stats ressetet!" to player
    20.             if arg-2 is set:
    21.                 if player has permission "twohit.admin":
    22.                     set {TwoHit.Deaths.%arg-2%} to 0
    23.                     set {TwoHit.Kills.%arg-2%} to 0
    24.                     set {TwoHit.Killstreak.%arg-2%} to 0
    25.                     send "{@P} &7Du hast &aerfolgreich &7die Stats von &e%arg-2% &7ressetet!" to player              
    26.         if arg-1 is "statsresetfrage":
    27.             open chest 3 rows named "&8» &c&lStatsreset" to player
    28.             wait 1 tick
    29.             format slot 5 of player with iron chestplate named "&8» &c&lStatsreset" with lore "&8» &7Willst du wirklich || &7deine Stats resseten?" to unstealable
    30.             format slot 13 of player with dye:10 named "&8» &a&lResseten" with lore "&8» &7Linksklick zum &cresseten" to close then run [execute player command "twohit ressetingstats"]
    31.             format slot 14 of player with dye:10 named "&8» &a&lResseten" with lore "&8» &7Linksklick zum &cresseten" to close then run [execute player command "twohit ressetingstats"]
    32.             format slot 15 of player with dye:1 named "&8» &c&lAbbrechen" with lore "&8» &7Linksklick zum &cabbrechen" to close
    33.             format slot 16 of player with dye:1 named "&8» &c&lAbbrechen" with lore "&8» &7Linksklick zum &cabbrechen" to close          
    34.         if arg-1 is "stats":
    35.             if arg-2 is not set:
    36.                 open chest with 3 rows named "&8» &9&lStats" to player
    37.                 wait 1 tick
    38.                 format slot 13 of player with iron sword named "&8» &eKills" with lore "&7%{TwoHit.Deaths.%player%}%" to be unstealable
    39.                 format slot 15 of player with tallgrass named "&8» &cStatsreset" with lore "&7Resette deine Stats" to close then run [execute player command "twohit statsresetfrage"]
    40.                 format slot 17 of player with gold chestplate named "&8» &bTode" with lore "&7%{TwoHit.Deaths.%player%}%" to be unstealable
    41.             if arg-2 is set:
    42.                 open chest with 3 rows named "&8» &9&lStats" to player
    43.                 wait 1 tick
    44.                 format slot 14 of player with iron sword named "&8» &eKills" with lore "&7%{TwoHit.Deaths.%arg-2%}%" to be unstealable
    45.                 format slot 16 of player with gold chestplate named "&8» &bTode" with lore "&7%{TwoHit.Deaths.%arg-2%}%" to be unstealable              
    46.         if arg-1 is "join":
    47.             if {joined.%player%} is true:
    48.                 send "{@P} &7Du bist bereits in &4Two&cHit" to player
    49.                 stop trigger
    50.             if {joined.%player%} is false:  
    51.                 teleport player to {twohit.spawn}
    52.                 give player stone sword named "&4Two&cHitter" of sharpness 4
    53.                 send "{@P} &7Willkommen in &4Two&cHit" to player              
    54.         if arg-1 is not set:
    55.             send "&7----===&4&lTwo&c&lHit&7===----" to player
    56.             send "&8» &f/twohit join" to player
    57.             send "&8» &f/twohit stats [Spieler]" to player
    58.             send "&7----===&4&lTwo&c&lHit&7===----" to player
    59.         if arg-1 is "admin":
    60.             if player has permission "twohit.admin":
    61.                 send "&7----===&4&lTwo&c&lHit&7===----" to player
    62.                 send "&8» &f/twohit join" to player
    63.                 send "&8» &f/twohit stats [Spieler]" to player
    64.                 send "&8» &f/twohit setspawn" to player
    65.                 send "&8» &f/twohit setlobby" to player
    66.                 send "&8» &f/twohit reload" to player
    67.                 send "&7----===&4&lTwo&c&lHit&7===----" to player
    68.         if arg-1 is "reload":
    69.             if player has permission "twohit.admin":
    70.                 make console execute command "skript reload twohit"
    71.  
    72. on load:
    73.     if file "plugins/TwoHit/config.yml" does not exist:
    74.         create file "plugins/TwoHit/config.yml"
    75.     set {_IP::*} to skutil yaml list "Server.IP" from file "plugins/TwoHit/config.yml"
    76.     loop {_IP::*}:
    77.         set {Server.IP} to {_IP::%loop-value%}
    78.         send "{@P} &7geladen" to console  
    79.         send "{@P} &bDev: &ezNqzy  
    80. on join:
    81.     set join message to "&7"
    82.     set {online.players} to number of all players
    83.     set {joined.%player%} to false
    84.     teleport player to {twohit.lobby}
    85.     set {TwoHit.Killstreak.%player%} to 0
    86.    
    87. on join:
    88.     clear players inventory
    89.     wait 1 second
    90.    
    91. on quit:
    92.     set quit message to "&7"
    93.     remove 1 from {online.players}
    94.    
    95. on damage:
    96.     damage cause is fall:
    97.         cancel the event
    98.    
    99. Every 1 seconds:
    100.     loop all players:
    101.         if {joined.%loop-player%} is true:
    102.             set action bar of loop-player to "&8● &7Teams &cverboten! &8●"
    103.             stop
    104.         else:
    105.             send player title "&7" with subtile "&9/twohit" to player
    106.             stop trigger      
    107.  
    108. on death:
    109.     if {TwoHit.Killstreak.%attacker%} is "5":
    110.         broadcast "{@P} &e%attacker% &7hat einen &4 5er Killstreak!"
    111.     if {TwoHit.Killstreak.%attacker%} is "10":
    112.         broadcast "{@P} &e%attacker% &7hat einen &4 10er Killstreak!"
    113.     if {TwoHit.Killstreak.%attacker%} is "15":
    114.         broadcast "{@P} &e%attacker% &7hat einen &4 15er Killstreak!"
    115.     if {TwoHit.Killstreak.%attacker%} is "20":
    116.         broadcast "{@P} &e%attacker% &7hat einen &4 10er Killstreak!"
    117.     if {TwoHit.Killstreak.%attacker%} is "25":
    118.         broadcast "{@P} &e%attacker% &7hat einen &4 25er Killstreak!"
    119.     if {TwoHit.Killstreak.%attacker%} is "50":
    120.         broadcast "{@P} &e%attacker% &7hat einen &450er Killstreak!"
    121.     if {TwoHit.Killstreak.%attacker%} is "75":
    122.         broadcast "{@P} &e%attacker% &7hat einen &475er Killstreak!"
    123.     if {TwoHit.Killstreak.%attacker%} is "76":
    124.         kick the attacker due to "&cVerdacht auf Hacking"
    125.         set leave message to ""
    126.  
    127. on death:
    128.     loop drops:
    129.         clear drops
    130.     victim is a player:
    131.         add 1 to {TwoHit.Deaths.%victim%}  
    132.         set [TwoHit.Killstreak.%victim%} to 0
    133.     attacker is a player:
    134.         add 1 to {TwoHit.Kills.%attacker%}
    135.         add 1 to {TwoHit.Killstreak.%attacker%}
    136.         set the death message to "&7"
    137.         give attacker ender pearl
    138.         heal attacker by 20 hearts
    139.  
    140. on respawn:
    141.     give player stone sword named "&4Two&cHitter" of sharpness 4
    142.  
    143. every 2 seconds:
    144.     loop all players:  
    145.         if {TwoHit.Kills.%loop-player%} is not set:
    146.             set {TwoHit.Kills.%loop-player%} to 0
    147.         if {TwoHit.Deaths.%loop-player%} is not set:
    148.             set {TwoHit.Deaths.%loop-player%} to 0
    149.         if {TwoHit.Killstreak.%loop-player%} is not set:
    150.             set {TwoHit.Killstreak.%loop-player%} to 0  
    151.  
    152. on weather change to rain or thunder:
    153.     cancel event  
    154.    
    155. on hunger metre change:
    156.     cancel event
    157.    
    158. on break:
    159.     if player has permission "twohit.admin":
    160.         stop
    161.     else:
    162.         cancel event
    163.  
    164. on place:
    165.     if player has permission "twohit.admin":
    166.         stop
    167.     else:
    168.         cancel event
    169.        
    170. on drop:
    171.     if player has permission "twohit.admin":
    172.         stop
    173.     else:
    174.         cancel event      
    175.  
    176. on join:
    177.     set tab header to "%nl% {Server.IP} %nl% &7&l[&4&lTwo&c&lHit&7&l] %nl%" and footer to "%nl% &7Onlinespieler: &6%{online.players}% %nl%" for player
    178.  
    179. on join:
    180.     if player has permission "tag.admin":
    181.         set player's tag to "&8[&4Admin&8] &4"
    182.         stop
    183.     if player has permission "tag.dev":
    184.         set player's tag to "&8[&bDev&8] &b"
    185.         stop      
    186.     if player has permission "tag.srmod":
    187.         set player's tag to "&8[&cSrMod&8] &c"
    188.         stop
    189.     if player has permission "tag.mod":
    190.         set player's tag to "&8[&2Mod&8] &2"
    191.         stop
    192.     if player has permission "tag.sup":
    193.         set player's tag to "&8[&aSup&8] &a"
    194.         stop
    195.     if player has permission "tag.builder":
    196.         set player's tag to "&8[&eBuilder&8] &e"
    197.         stop
    198.     if player has permission "tag.youtuber":
    199.         set player's tag to "&8[&5YTer&8] &5"
    200.         stop
    201.     if player has permission "tag.premium":
    202.         set player's tag to "&8[&6Premium&8]"
    203.         stop
    204.     if player has permission "tag.spieler":
    205.         set player's tag to "&8[&7Spieler&8]"
    206.         stop      
    207.    
    208. every 30 ticks:
    209.     loop all players:
    210.         wipe loop-player's sidebar
    211.         set name of sidebar of loop-player to "&7-=&4&lTwo&c&lHit&7=-"
    212.         set score "&7 " in sidebar of loop-player to 10
    213.         set score "&fDeine Kills: " in sidebar of loop-player to 9
    214.         set score "&8➟ &7%{TwoHit.Kills.%loop-player%}%" in sidebar of loop-player to 8
    215.         set score "&7  " in sidebar of loop-player to 7
    216.         set score "&fDeine Tode" in sidebar of loop-player to 6
    217.         set score "&8➟ &7%{TwoHit.Deaths.%loop-player%}%" in sidebar of loop-player to 5
    218.         set score "&7   " in sidebar of loop-player to 4
    219.         set score "&fDein Killstreak:" in sidebar of loop-player to 3
    220.         set score "&8➟ &7%{TwoHit.Killstreak.%loop-player%}%" in sidebar of loop-player to 2  
    221.         set score "&7    " in sidebar of loop-player to 1
     
  2. CharcoalToast

    CharcoalToast Member

    Joined:
    Mar 10, 2018
    Messages:
    23
    Likes Received:
    4
    Use the proper format....

    Use right version:
    Skript-dev36 for 1.8
    And Skript 2.3.6 for 1.9 and higher.
    You’re not using the highest version
     
Thread Status:
Not open for further replies.

Share This Page

Loading...