Skip to content

Commit

Permalink
Missing return statement
Browse files Browse the repository at this point in the history
  • Loading branch information
nickuc committed Mar 12, 2024
1 parent 01b3c1e commit f3f8261
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@ public void onPlayerCommandPreprocess(PlayerCommandPreprocessEvent e) {
e.setCancelled(true);
player.sendMessage(ChatColor.RED + "You cannot manipulate the System terminal from here.");
logger.warning(String.format("The player %s tried to access the System terminal command in-game. (\"%s\")", player.getName(), message));
return;
}

// Disable the "/plugman download" command in-game, since it opens RCE security breaches.
Expand Down

0 comments on commit f3f8261

Please sign in to comment.