LuckPerms

LuckPerms

41.4k Downloads

Adding permissions for dummy command sender

abused opened this issue · 7 comments

commented

Hi,
so im currently using the mod DiscordChat by shadowfacts, a problem however im running into is that when we use !exec kick or such it'll go through as "you do not have permission to run this command", we cab run !exec fine but the bot does not have permission to actually execute the command, how can i go about giving an ICommandSender a permission?
"psst code for the dummysender is here"
https://github.com/shadowfacts/DiscordChat/blob/rewrite/1.10.2/src/main/java/net/shadowfacts/discordchat/one_ten_two/DummySender.java

commented

You can try to test it with verbose active to see the permission checks happening and for whom they are checked

commented

Also. It might make more sense to implement such a bot with the Sponge-API instead of implementing it as a Forge Mod.

commented

How do you do a verbose attack?

commented

I'll Give it a shot thanks

commented

So i tried a verbose attack and nothing came up but this showed in console
[07:53:11] [JDA MainWS-ReadThread/WARN] [Sponge]: No entity type is registered for class net.minecraftforge.common.util.FakePlayer
This is the verbose attack i ran
https://gist.github.com/anonymous/308560cdcb09132f212243fb4b8b08b2

commented

This is a Sponge / DiscordChat issue if anything. If the checks aren’t being sent to LuckPerms, there’s nothing I can do.