Skip to content

Commit 4f4248a

Browse files
Merge pull request #1 from thinkverse/fix/bukkit-bypass
Fix 'bukkit:' prefix bypass
2 parents 4dcabe6 + 6ba5b7b commit 4f4248a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/java/net/noodles/pl/nopluginscommand/NoPluginsCommand.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ public void onDisable() {
2626
@EventHandler
2727
public void onCommandUse(PlayerCommandPreprocessEvent event) {
2828
Player player = event.getPlayer();
29-
List<String> commands = Arrays.asList("pl", "about", "version", "ver", "plugins", "minecraft:pl", "minecraft:plugins", "minecraft:about", "minecraft:version", "minecaft:ver");
29+
List<String> commands = Arrays.asList("pl", "about", "version", "ver", "plugins", "bukkit:pl", "bukkit:about", "bukkit:version", "bukkit:ver", "bukkit:plugins", "minecraft:pl", "minecraft:plugins", "minecraft:about", "minecraft:version", "minecraft:ver");
3030
commands.forEach(all -> {
3131
if (event.getMessage().toLowerCase().equalsIgnoreCase("/" + all.toLowerCase())) {
3232
event.setCancelled(true);

0 commit comments

Comments
 (0)