Skip to content

Commit 86fe6fe

Browse files
committed
Make some variables final that can be
1 parent b4fed00 commit 86fe6fe

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

src/main/java/net/jadedmc/commandblockerpro/listeners/PlayerCommandSendListener.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -55,14 +55,14 @@ public PlayerCommandSendListener(final CommandBlockerProPlugin plugin) {
5555
*/
5656
@EventHandler
5757
public void onCommandSend(PlayerCommandSendEvent event) {
58-
Player player = event.getPlayer();
59-
List<String> tablist = new ArrayList<>(event.getCommands());
58+
final Player player = event.getPlayer();
59+
final List<String> tablist = new ArrayList<>(event.getCommands());
6060

6161
// Loops through all the rules.
62-
for(Rule rule : plugin.ruleManager().rules()) {
62+
for(final Rule rule : plugin.ruleManager().getRules()) {
6363

6464
// Removes commands that are hidden by that rule.
65-
for(String command : tablist) {
65+
for(final String command : tablist) {
6666
if(rule.shouldHide(player, "/" + command)) {
6767
event.getCommands().remove(command);
6868
}

0 commit comments

Comments
 (0)