Multiple NullPointer Fixes With Container Permissions and Chat Fixed
This commit is contained in:
parent
8af272cfdf
commit
a0e2149956
@ -161,7 +161,7 @@ public class FactionsPlayerListener implements Listener {
|
|||||||
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
@SuppressWarnings("deprecation")
|
||||||
public static boolean canPlayerUseBlock(Player player, Block block, boolean justCheck) {
|
public static boolean canPlayerUseBlock(Player player, Block block, boolean justCheck) {
|
||||||
if (Conf.playersWhoBypassAllProtection.contains(player.getName())) {
|
if (Conf.playersWhoBypassAllProtection.contains(player.getName())) {
|
||||||
return true;
|
return true;
|
||||||
@ -930,13 +930,13 @@ public class FactionsPlayerListener implements Listener {
|
|||||||
|
|
||||||
// returns the current attempt count
|
// returns the current attempt count
|
||||||
public int increment() {
|
public int increment() {
|
||||||
long Now = System.currentTimeMillis();
|
long now = System.currentTimeMillis();
|
||||||
if (Now > lastAttempt + 2000) {
|
if (now > lastAttempt + 2000) {
|
||||||
attempts = 1;
|
attempts = 1;
|
||||||
} else {
|
} else {
|
||||||
attempts++;
|
attempts++;
|
||||||
}
|
}
|
||||||
lastAttempt = Now;
|
lastAttempt = now;
|
||||||
return attempts;
|
return attempts;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user