From 68eb202b0849fa5697fc2e92cadf8521c662d632 Mon Sep 17 00:00:00 2001 From: tanyaofei Date: Sat, 5 Oct 2024 21:05:12 +0800 Subject: [PATCH] Revert "Add permission for invsee by right click" This reverts commit b4c34bb0ea2f3fcb55880103d2f3415a0a13e6ce. --- .../github/hello09x/fakeplayer/core/command/Permission.java | 1 - .../core/manager/invsee/AbstractInvseeManager.java | 5 ----- fakeplayer-core/src/main/resources/plugin.yml | 6 +----- 3 files changed, 1 insertion(+), 11 deletions(-) diff --git a/fakeplayer-core/src/main/java/io/github/hello09x/fakeplayer/core/command/Permission.java b/fakeplayer-core/src/main/java/io/github/hello09x/fakeplayer/core/command/Permission.java index c487635..e418c46 100644 --- a/fakeplayer-core/src/main/java/io/github/hello09x/fakeplayer/core/command/Permission.java +++ b/fakeplayer-core/src/main/java/io/github/hello09x/fakeplayer/core/command/Permission.java @@ -44,7 +44,6 @@ public interface Permission { String wakeup = "fakeplayer.command.wakeup"; String cmd = "fakeplayer.command.cmd"; String stop = "fakeplayer.command.stop"; - String rightClickInvsee = "fakeplayer.interact.right-click-invsee"; String op = "OP"; diff --git a/fakeplayer-core/src/main/java/io/github/hello09x/fakeplayer/core/manager/invsee/AbstractInvseeManager.java b/fakeplayer-core/src/main/java/io/github/hello09x/fakeplayer/core/manager/invsee/AbstractInvseeManager.java index 76f58a3..d9aea2c 100644 --- a/fakeplayer-core/src/main/java/io/github/hello09x/fakeplayer/core/manager/invsee/AbstractInvseeManager.java +++ b/fakeplayer-core/src/main/java/io/github/hello09x/fakeplayer/core/manager/invsee/AbstractInvseeManager.java @@ -1,7 +1,6 @@ package io.github.hello09x.fakeplayer.core.manager.invsee; 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.FakeplayerManager; import org.bukkit.Sound; @@ -67,10 +66,6 @@ public void rightClickToInvsee(@NotNull PlayerInteractAtEntityEvent event) { return; } - if (!event.getPlayer().hasPermission(Permission.rightClickInvsee)) { - return; - } - this.invsee(event.getPlayer(), whom); // fakeplayer check here } diff --git a/fakeplayer-core/src/main/resources/plugin.yml b/fakeplayer-core/src/main/resources/plugin.yml index cb44aa0..c1ea77f 100644 --- a/fakeplayer-core/src/main/resources/plugin.yml +++ b/fakeplayer-core/src/main/resources/plugin.yml @@ -84,16 +84,13 @@ permissions: description: 'Allow player to run /fp hold' fakeplayer.command.cmd: description: 'Allow player to run /fp cmd' - fakeplayer.command.stop: - description: 'Allow player to run /fp stop' fakeplayer.config.replenish: description: 'Allow player to configure fake players can replenish' fakeplayer.config.replenish.chest: description: 'Allow player to configure fake players can replenish from nearby chest' fakeplayer.config.autofish: 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: description: 'Includes all basic permissions' children: @@ -108,7 +105,6 @@ permissions: - fakeplayer.command.dropinv - fakeplayer.command.skin - fakeplayer.command.invsee - - fakeplayer.interact.right-click-invsee - fakeplayer.command.status - fakeplayer.command.respawn - fakeplayer.command.config