mirror of
https://github.com/tanyaofei/minecraft-fakeplayer.git
synced 2025-07-13 21:02:27 +08:00
Revert "Add permission for invsee by right click"
This reverts commit b4c34bb0ea
.
This commit is contained in:
parent
9d6193a132
commit
68eb202b08
@ -44,7 +44,6 @@ public interface Permission {
|
|||||||
String wakeup = "fakeplayer.command.wakeup";
|
String wakeup = "fakeplayer.command.wakeup";
|
||||||
String cmd = "fakeplayer.command.cmd";
|
String cmd = "fakeplayer.command.cmd";
|
||||||
String stop = "fakeplayer.command.stop";
|
String stop = "fakeplayer.command.stop";
|
||||||
String rightClickInvsee = "fakeplayer.interact.right-click-invsee";
|
|
||||||
|
|
||||||
|
|
||||||
String op = "OP";
|
String op = "OP";
|
||||||
|
@ -1,7 +1,6 @@
|
|||||||
package io.github.hello09x.fakeplayer.core.manager.invsee;
|
package io.github.hello09x.fakeplayer.core.manager.invsee;
|
||||||
|
|
||||||
import io.github.hello09x.devtools.core.utils.ComponentUtils;
|
import io.github.hello09x.devtools.core.utils.ComponentUtils;
|
||||||
import io.github.hello09x.fakeplayer.core.command.Permission;
|
|
||||||
import io.github.hello09x.fakeplayer.core.manager.FakeplayerList;
|
import io.github.hello09x.fakeplayer.core.manager.FakeplayerList;
|
||||||
import io.github.hello09x.fakeplayer.core.manager.FakeplayerManager;
|
import io.github.hello09x.fakeplayer.core.manager.FakeplayerManager;
|
||||||
import org.bukkit.Sound;
|
import org.bukkit.Sound;
|
||||||
@ -67,10 +66,6 @@ public abstract class AbstractInvseeManager implements InvseeManager {
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!event.getPlayer().hasPermission(Permission.rightClickInvsee)) {
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
|
|
||||||
this.invsee(event.getPlayer(), whom); // fakeplayer check here
|
this.invsee(event.getPlayer(), whom); // fakeplayer check here
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -84,16 +84,13 @@ permissions:
|
|||||||
description: 'Allow player to run /fp hold'
|
description: 'Allow player to run /fp hold'
|
||||||
fakeplayer.command.cmd:
|
fakeplayer.command.cmd:
|
||||||
description: 'Allow player to run /fp cmd'
|
description: 'Allow player to run /fp cmd'
|
||||||
fakeplayer.command.stop:
|
|
||||||
description: 'Allow player to run /fp stop'
|
|
||||||
fakeplayer.config.replenish:
|
fakeplayer.config.replenish:
|
||||||
description: 'Allow player to configure fake players can replenish'
|
description: 'Allow player to configure fake players can replenish'
|
||||||
fakeplayer.config.replenish.chest:
|
fakeplayer.config.replenish.chest:
|
||||||
description: 'Allow player to configure fake players can replenish from nearby chest'
|
description: 'Allow player to configure fake players can replenish from nearby chest'
|
||||||
fakeplayer.config.autofish:
|
fakeplayer.config.autofish:
|
||||||
description: 'Allow player to configure fake players to auto-fishing'
|
description: 'Allow player to configure fake players to auto-fishing'
|
||||||
fakeplayer.interact.right-click-invsee:
|
|
||||||
description: 'Allow player to open inventory of fake players by right clicking'
|
|
||||||
fakeplayer.spawn:
|
fakeplayer.spawn:
|
||||||
description: 'Includes all basic permissions'
|
description: 'Includes all basic permissions'
|
||||||
children:
|
children:
|
||||||
@ -108,7 +105,6 @@ permissions:
|
|||||||
- fakeplayer.command.dropinv
|
- fakeplayer.command.dropinv
|
||||||
- fakeplayer.command.skin
|
- fakeplayer.command.skin
|
||||||
- fakeplayer.command.invsee
|
- fakeplayer.command.invsee
|
||||||
- fakeplayer.interact.right-click-invsee
|
|
||||||
- fakeplayer.command.status
|
- fakeplayer.command.status
|
||||||
- fakeplayer.command.respawn
|
- fakeplayer.command.respawn
|
||||||
- fakeplayer.command.config
|
- fakeplayer.command.config
|
||||||
|
Loading…
Reference in New Issue
Block a user