I'm attempting to use PermSk Skript addon to add permissions once a command is run.
Here is my buywarp.sk
Here's the error I am getting in console:
I have tried disabling DiscordSRV and then trying again, the issue could be with PermSk but I need that to work.
Can anyone help with this issue?
Here is my buywarp.sk
Code:
command /player-warp <text> [<text>]:
description: Show a list of warps, set, delete or travel to your warp.
usage: /player-warp buy/remove <name>, /player-warp <name>, /player-warp list
permission: skript.example.warp
executable by: players
trigger:
if arg-1 is "buy":
if player's balance is greater or equal to 10000:
if arg-2 is set:
set {warps::%uuid of player%::%arg-2%} to player's location
send "Set your warp <green>%arg-2%<reset> to <grey>%location of player%<reset>" to player
set {_perms::*} to all permissions of player
set {_perms::*} to all permissions of player in "world"
add "essentials.fly" to permissions of player in world of player
else:
send "You must specify a name for this home." to player
else:
send "&cYou do not have enough money to buy a warp!" to player
else if arg-1 is "remove":
if arg-2 is set:
delete {warps::%uuid of player%::%arg-2%}
send "Deleted your warp <green>%arg-2%<reset>" to player
else:
send "You must specify the name of this warp." to player
else if arg-1 is "list":
send "&eList of warps:"
loop {warps::%uuid of player%::*}:
send " %loop-index%" to player
else if arg-2 is set:
send "Correct usage: /player-warp set/remove <name>" to player
else if {warps::%uuid of player%::%arg-1%} is set:
teleport player to {warps::%uuid of player%::%arg-1%}
else:
send "You have no warp named <green>%arg-1%<reset>." to player
Here's the error I am getting in console:
Code:
15.03 15:26:21 [Server] Server thread/[ERROR] #!#!
15.03 15:26:21 [Server] Server thread/[ERROR] #!#! [Skript] Severe Error:
15.03 15:26:21 [Server] Server thread/[ERROR] #!#!
15.03 15:26:21 [Server] Server thread/[ERROR] #!#! Something went horribly wrong with Skript.
15.03 15:26:21 [Server] Server thread/[ERROR] #!#! This issue is NOT your fault! You probably can't fix it yourself, either.
15.03 15:26:21 [Server] Server thread/[ERROR] #!#! It looks like you are using some plugin(s) that alter how Skript works (addons).
15.03 15:26:21 [Server] Server thread/[ERROR] #!#! Here is full list of them:
15.03 15:26:21 [Server] Server thread/[ERROR] #!#! PermSk v1.1.1 (https://iplexy.de) DiscordSRV v1.26.1-SNAPSHOT (https://github.com/DiscordSRV/DiscordSRV)
15.03 15:26:21 [Server] Server thread/[ERROR] #!#! We could not identify which of those are specially related, so this might also be Skript issue.
15.03 15:26:21 [Server] Server thread/[ERROR] #!#! You should try disabling those plugins one by one, trying to find which one causes it.
15.03 15:26:21 [Server] Server thread/[ERROR] #!#! If the error doesn't disappear even after disabling all listed plugins, it is probably Skript issue.
15.03 15:26:21 [Server] Server thread/[ERROR] #!#! In that case, you will be given instruction on how should you report it.
15.03 15:26:21 [Server] Server thread/[ERROR] #!#! On the other hand, if the error disappears when disabling some plugin, report it to author of that plugin.
15.03 15:26:21 [Server] Server thread/[ERROR] #!#! Only if the author tells you to do so, report it to Skript's issue tracker.
15.03 15:26:21 [Server] Server thread/[ERROR] #!#!
15.03 15:26:21 [Server] Server thread/[ERROR] #!#! Stack trace:
15.03 15:26:21 [Server] Server thread/[ERROR] #!#! java.lang.IllegalArgumentException: Attempting to build non-permission node with PermissionNode.Builder. permission = 'group.default', correct builder type = me.lucko.luckperms.common.node.types.Inheritance$Builder
15.03 15:26:21 [Server] Server thread/[ERROR] #!#! at me.lucko.luckperms.common.node.types.Permission$Builder.build(Permission.java:104)
15.03 15:26:21 [Server] Server thread/[ERROR] #!#! at me.lucko.luckperms.common.node.types.Permission$Builder.build(Permission.java:76)
15.03 15:26:21 [Server] Server thread/[ERROR] #!#! at de.iplexy.permsk.utils.api.LuckAPI.getPerm(LuckAPI.java:166)
15.03 15:26:21 [Server] Server thread/[ERROR] #!#! at de.iplexy.permsk.plugins.elements.expressions.ExprPlayerPerms.get(ExprPlayerPerms.java:61)
15.03 15:26:21 [Server] Server thread/[ERROR] #!#! at de.iplexy.permsk.plugins.elements.expressions.ExprPlayerPerms.get(ExprPlayerPerms.java:24)
15.03 15:26:21 [Server] Server thread/[ERROR] #!#! at ch.njol.skript.lang.util.SimpleExpression.getArray(SimpleExpression.java:101)
15.03 15:26:21 [Server] Server thread/[ERROR] #!#! at ch.njol.skript.effects.EffChange.execute(EffChange.java:272)
15.03 15:26:21 [Server] Server thread/[ERROR] #!#! at ch.njol.skript.lang.Effect.run(Effect.java:50)
15.03 15:26:21 [Server] Server thread/[ERROR] #!#! at ch.njol.skript.lang.TriggerItem.walk(TriggerItem.java:62)
15.03 15:26:21 [Server] Server thread/[ERROR] #!#! at ch.njol.skript.lang.TriggerItem.walk(TriggerItem.java:90)
15.03 15:26:21 [Server] Server thread/[ERROR] #!#! at ch.njol.skript.lang.Trigger.execute(Trigger.java:52)
15.03 15:26:21 [Server] Server thread/[ERROR] #!#! at ch.njol.skript.command.ScriptCommand.execute2(ScriptCommand.java:312)
15.03 15:26:21 [Server] Server thread/[ERROR] #!#! at ch.njol.skript.command.ScriptCommand.lambda$execute$0(ScriptCommand.java:277)
15.03 15:26:21 [Server] Server thread/[ERROR] #!#! at ch.njol.skript.command.ScriptCommand.execute(ScriptCommand.java:282)
15.03 15:26:21 [Server] Server thread/[ERROR] #!#! at ch.njol.skript.command.Commands.handleCommand(Commands.java:193)
15.03 15:26:21 [Server] Server thread/[ERROR] #!#! at ch.njol.skript.command.Commands$1.onPlayerCommand(Commands.java:152)
15.03 15:26:21 [Server] Server thread/[ERROR] #!#! at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
15.03 15:26:21 [Server] Server thread/[ERROR] #!#! at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:78)
15.03 15:26:21 [Server] Server thread/[ERROR] #!#! at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
15.03 15:26:21 [Server] Server thread/[ERROR] #!#! at java.base/java.lang.reflect.Method.invoke(Method.java:568)
15.03 15:26:21 [Server] Server thread/[ERROR] #!#! at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:306)
15.03 15:26:21 [Server] Server thread/[ERROR] #!#! at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:70)
15.03 15:26:21 [Server] Server thread/[ERROR] #!#! at org.bukkit.plugin.SimplePluginManager.fireEvent(SimplePluginManager.java:589)
15.03 15:26:21 [Server] Server thread/[ERROR] #!#! at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:576)
15.03 15:26:21 [Server] Server thread/[ERROR] #!#! at net.minecraft.server.network.PlayerConnection.a(PlayerConnection.java:1933)
15.03 15:26:21 [Server] Server thread/[ERROR] #!#! at net.minecraft.server.network.PlayerConnection.lambda$18(PlayerConnection.java:1919)
15.03 15:26:21 [Server] Server thread/[ERROR] #!#! at net.minecraft.util.thread.IAsyncTaskHandler.b(SourceFile:67)
15.03 15:26:21 [Server] Server thread/[ERROR] #!#! at java.base/java.util.concurrent.CompletableFuture$AsyncSupply.run(CompletableFuture.java:1768)
15.03 15:26:21 [Server] Server thread/[ERROR] #!#! at net.minecraft.server.TickTask.run(SourceFile:18)
15.03 15:26:21 [Server] Server thread/[ERROR] #!#! at net.minecraft.util.thread.IAsyncTaskHandler.d(SourceFile:156)
15.03 15:26:21 [Server] Server thread/[ERROR] #!#! at net.minecraft.util.thread.IAsyncTaskHandlerReentrant.d(SourceFile:23)
15.03 15:26:21 [Server] Server thread/[ERROR] #!#! at net.minecraft.server.MinecraftServer.b(MinecraftServer.java:1154)
15.03 15:26:21 [Server] Server thread/[ERROR] #!#! at net.minecraft.server.MinecraftServer.d(MinecraftServer.java:1)
15.03 15:26:21 [Server] Server thread/[ERROR] #!#! at net.minecraft.util.thread.IAsyncTaskHandler.x(SourceFile:130)
15.03 15:26:21 [Server] Server thread/[ERROR] #!#! at net.minecraft.server.MinecraftServer.bh(MinecraftServer.java:1133)
15.03 15:26:21 [Server] Server thread/[ERROR] #!#! at net.minecraft.server.MinecraftServer.x(MinecraftServer.java:1126)
15.03 15:26:21 [Server] Server thread/[ERROR] #!#! at net.minecraft.util.thread.IAsyncTaskHandler.c(SourceFile:139)
15.03 15:26:21 [Server] Server thread/[ERROR] #!#! at net.minecraft.server.MinecraftServer.i_(MinecraftServer.java:1110)
15.03 15:26:21 [Server] Server thread/[ERROR] #!#! at net.minecraft.server.MinecraftServer.w(MinecraftServer.java:1021)
15.03 15:26:21 [Server] Server thread/[ERROR] #!#! at net.minecraft.server.MinecraftServer.lambda$0(MinecraftServer.java:301)
15.03 15:26:21 [Server] Server thread/[ERROR] #!#! at java.base/java.lang.Thread.run(Thread.java:831)
15.03 15:26:21 [Server] Server thread/[ERROR] #!#!
15.03 15:26:21 [Server] Server thread/[ERROR] #!#! Version Information:
15.03 15:26:21 [Server] Server thread/[ERROR] #!#! Skript: 2.7.0-beta1 (latest)
15.03 15:26:21 [Server] Server thread/[ERROR] #!#! Flavor: skriptlang-github
15.03 15:26:21 [Server] Server thread/[ERROR] #!#! Date: 20:28:50.750636200
15.03 15:26:21 [Server] Server thread/[ERROR] #!#! Bukkit: 1.19.3-R0.1-SNAPSHOT
15.03 15:26:21 [Server] Server thread/[ERROR] #!#! Minecraft: 1.19.3
15.03 15:26:21 [Server] Server thread/[ERROR] #!#! Java: 17 (OpenJDK 64-Bit Server VM 17+20-202105042342)
15.03 15:26:21 [Server] Server thread/[ERROR] #!#! OS: Linux amd64 4.18.0-372.9.1.el8.x86_64
15.03 15:26:21 [Server] Server thread/[ERROR] #!#!
15.03 15:26:21 [Server] Server thread/[ERROR] #!#! Server platform: Spigot
15.03 15:26:23 [Server] Server thread/[ERROR] #!#!
15.03 15:26:23 [Server] Server thread/[ERROR] #!#! Current node: null
15.03 15:26:23 [Server] Server thread/[ERROR] #!#! Current item: set {_perms::*} (as java.lang.Object) to permissions of the player in world ("world" >> ch.njol.skript.classes.data.DefaultConverters$$Lambda$21080/0x0000000805370cc0@1111062d: ConverterInfo{from=class java.lang.String,to=interface org.bukkit.World,converter=ch.njol.skript.classes.data.DefaultConverters$$Lambda$21080/0x0000000805370cc0@1111062d,flag=0})
15.03 15:26:23 [Server] Server thread/[ERROR] #!#! Current trigger: command /player-warp (simple event) (buywarp.sk, line 6)
15.03 15:26:23 [Server] Server thread/[ERROR] #!#!
15.03 15:26:23 [Server] Server thread/[ERROR] #!#! Thread: Server thread
15.03 15:26:23 [Server] Server thread/[ERROR] #!#!
15.03 15:26:23 [Server] Server thread/[ERROR] #!#! Language: english
15.03 15:26:23 [Server] Server thread/[ERROR] #!#! Link parse mode: DISABLED
15.03 15:26:23 [Server] Server thread/[ERROR] #!#!
15.03 15:26:23 [Server] Server thread/[ERROR] #!#! End of Error.
15.03 15:26:23 [Server] Server thread/[ERROR] #!#!
I have tried disabling DiscordSRV and then trying again, the issue could be with PermSk but I need that to work.
Can anyone help with this issue?