Skip to content

Commit

Permalink
Changed command blocker to work with command names
Browse files Browse the repository at this point in the history
  • Loading branch information
Zffu committed May 17, 2024
1 parent 2f99921 commit 7edf2b3
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/main/java/org/mineacademy/fo/Common.java
Original file line number Diff line number Diff line change
Expand Up @@ -1192,7 +1192,9 @@ else if (command.startsWith("@success ")) {
if (!command.startsWith("tellraw"))
command = colorize(command);

checkBlockedCommands(playerReplacement, command);
String commandName = command.split(" ")[0];

checkBlockedCommands(playerReplacement, commandName, command);

final String finalCommand = command;

Expand Down

0 comments on commit 7edf2b3

Please sign in to comment.