From a0e2149956c6a9d28089fff5a7a6b1e6019df6d9 Mon Sep 17 00:00:00 2001 From: Joshua Murphy Date: Wed, 21 Nov 2018 05:31:41 -0500 Subject: [PATCH] Multiple NullPointer Fixes With Container Permissions and Chat Fixed --- .../factions/listeners/FactionsPlayerListener.java | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/main/java/com/massivecraft/factions/listeners/FactionsPlayerListener.java b/src/main/java/com/massivecraft/factions/listeners/FactionsPlayerListener.java index a08669c1..19c95b79 100644 --- a/src/main/java/com/massivecraft/factions/listeners/FactionsPlayerListener.java +++ b/src/main/java/com/massivecraft/factions/listeners/FactionsPlayerListener.java @@ -161,7 +161,7 @@ public class FactionsPlayerListener implements Listener { return true; } - + @SuppressWarnings("deprecation") public static boolean canPlayerUseBlock(Player player, Block block, boolean justCheck) { if (Conf.playersWhoBypassAllProtection.contains(player.getName())) { return true; @@ -930,13 +930,13 @@ public class FactionsPlayerListener implements Listener { // returns the current attempt count public int increment() { - long Now = System.currentTimeMillis(); - if (Now > lastAttempt + 2000) { + long now = System.currentTimeMillis(); + if (now > lastAttempt + 2000) { attempts = 1; } else { attempts++; } - lastAttempt = Now; + lastAttempt = now; return attempts; } }