Restrict the radius to 20 #188
@@ -72,6 +72,10 @@ public class SearchContainerCommand implements TabExecutor {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (radius > 20) {
|
||||||
|
radius = 20;
|
||||||
|
}
|
||||||
|
|
||||||
Player senderPlayer = (Player) sender;
|
Player senderPlayer = (Player) sender;
|
||||||
World world = senderPlayer.getWorld();
|
World world = senderPlayer.getWorld();
|
||||||
Chunk centerChunk = senderPlayer.getLocation().getChunk();
|
Chunk centerChunk = senderPlayer.getLocation().getChunk();
|
||||||
|
Reference in New Issue
Block a user