getPrimaryGroup with Permission that doesn't support groups
haveric opened this issue ยท 2 comments
Quote from Hammerfell
"
Hey I'm getting An error. I'll list it:
2012-11-26 18:52:49 [SEVERE] Could not pass event InventoryClickEvent to StackableItems v0.9.0.1 org.bukkit.event.EventException at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:341) at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:62) at org.bukkit.plugin.SimplePluginManager.fireEvent(SimplePluginManager.java:477) at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:462) at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:1298) at net.minecraft.server.Packet107SetCreativeSlot.handle(SourceFile:21) at net.minecraft.server.NetworkManager.b(NetworkManager.java:290) at net.minecraft.server.NetServerHandler.d(NetServerHandler.java:113) at net.minecraft.server.ServerConnection.b(SourceFile:39) at net.minecraft.server.DedicatedServerConnection.b(SourceFile:30) at net.minecraft.server.MinecraftServer.r(MinecraftServer.java:595) at net.minecraft.server.DedicatedServer.r(DedicatedServer.java:222) at net.minecraft.server.MinecraftServer.q(MinecraftServer.java:493) at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:426) at net.minecraft.server.ThreadServerApplication.run(SourceFile:856) Caused by: java.lang.UnsupportedOperationException: SuperPerms no group permissions. at net.milkbowl.vault.permission.plugins.Permission_SuperPerms.getPrimaryGroup(Permission_SuperPerms.java:96) at net.milkbowl.vault.permission.Permission.getPrimaryGroup(Permission.java:646) at haveric.stackableItems.Perms.getPrimaryGroup(Perms.java:55) at haveric.stackableItems.SIItems.getItemMax(SIItems.java:201) at haveric.stackableItems.InventoryUtil.getInventoryMax(InventoryUtil.java:316) at haveric.stackableItems.SIPlayerListener.inventoryClick(SIPlayerListener.java:522) at sun.reflect.GeneratedMethodAccessor3.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:339) ... 14 more
This error occurs when the plugin calls for vault group system using Perms.getPrimaryGroup(Player), it throws an exception. One example is in SIItems at line 201. If you can make it so the plugin catches this UnsupportedOperationException it shouldn't throw an error."
I might actually have this fixed already, but adding here until I can verify it.