diff --git a/plugin/src/main/java/com/lishid/openinv/commands/SearchContainerCommand.java b/plugin/src/main/java/com/lishid/openinv/commands/SearchContainerCommand.java index 7242ee9..616b5e7 100644 --- a/plugin/src/main/java/com/lishid/openinv/commands/SearchContainerCommand.java +++ b/plugin/src/main/java/com/lishid/openinv/commands/SearchContainerCommand.java @@ -71,6 +71,10 @@ public class SearchContainerCommand implements TabExecutor { return false; } } + + if (radius > 20) { + radius = 20; + } Player senderPlayer = (Player) sender; World world = senderPlayer.getWorld();