Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Plugin x tried to register permission 'x' but it's already registered #91

Open
HexedHero opened this issue Jun 6, 2023 · 0 comments
Open

Comments

@HexedHero
Copy link

If you have a command with the permission annotation, on startup it'll complain about triumph-cmds registering the permission if it's already in the plugin.yml. This seems to only be an issue on 1.8 and 1.9 for whatever reason

Problematic code: https://github.com/TriumphTeam/triumph-cmds/blob/master/minecraft/bukkit/src/main/java/dev/triumphteam/cmd/bukkit/CommandPermission.java#L92-L102

[14:45:41 WARN]: Plugin CitizensCMD v2.6.11 tried to register permission 'citizenscmd.edit' but it's already registered
java.lang.IllegalArgumentException: The permission citizenscmd.edit is already defined!
	at org.bukkit.plugin.SimplePluginManager.addPermission(SimplePluginManager.java:621) ~[patched_1.8.8.jar:git-PaperSpigot-445]
	at org.bukkit.craftbukkit.v1_8_R3.CraftServer.loadPlugin(CraftServer.java:365) [patched_1.8.8.jar:git-PaperSpigot-445]
	at org.bukkit.craftbukkit.v1_8_R3.CraftServer.enablePlugins(CraftServer.java:318) [patched_1.8.8.jar:git-PaperSpigot-445]
	at net.minecraft.server.v1_8_R3.MinecraftServer.s(MinecraftServer.java:408) [patched_1.8.8.jar:git-PaperSpigot-445]
	at net.minecraft.server.v1_8_R3.MinecraftServer.k(MinecraftServer.java:372) [patched_1.8.8.jar:git-PaperSpigot-445]
	at net.minecraft.server.v1_8_R3.MinecraftServer.a(MinecraftServer.java:327) [patched_1.8.8.jar:git-PaperSpigot-445]
	at net.minecraft.server.v1_8_R3.DedicatedServer.init(DedicatedServer.java:267) [patched_1.8.8.jar:git-PaperSpigot-445]
	at net.minecraft.server.v1_8_R3.MinecraftServer.run(MinecraftServer.java:563) [patched_1.8.8.jar:git-PaperSpigot-445]
	at java.lang.Thread.run(Thread.java:750) [?:1.8.0_372]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant