Shiny Token

Shiny Token

15.6k Downloads

Permission problem

BulletSheep opened this issue · 8 comments

commented

I use FTB utilities and i can´t add the permission for Shinytoken.command.convert

I´ve tried to set it true, the a value to 1 or set it to none... nothing works do you have an idea?

commented

This was reported for pixeldex as well: qwbarch/pixeldex#6
Unfortunately I don't have time to fix any issues on these mods right now, sorry about that 😅

commented

can you say to me where your Code for the Permissions so i can try to solve it on my own? only if its okay for you?

commented

Sure! If you manage to solve it, a pull request would be nice.
The way I "set" the permissions is by overriding the checkPermission method of CommandBase.

override fun checkPermission(server: MinecraftServer, sender: ICommandSender): Boolean {
return sender.canUseCommand(permLevel,
"${ShinyToken.MOD_ID}." + (if (permLevel == 1) "command" else "admin") + ".$name")
}
}

commented

Sure i give you the solution if I found a Way. i would try to use the Spongeforge API.

commented

This mod is written in forge so you'd still need to use the forge api.
If you run your minecraft server with SpongeForge, you could always use LuckPerms as your permission manager (I've tested with it and it works).

commented

is it Possible to use FTB utilities and Luckperms?

Because thats my problem my Community Server started Yesterday and after 3 Hours we found out that we cant use the permissions of Shinytokens with FTB utilities. when it is Possible its my solution lul

commented

I've never used FTB utilities so I have no clue about that, sorry

commented

okay no problem
thank you