mirror of
https://github.com/mcMMO-Dev/mcMMO.git
synced 2024-11-02 08:39:49 +01:00
Remove a few unused imports & variables.
This commit is contained in:
parent
1a2dfb9b19
commit
84994c2b2f
@ -1,6 +1,5 @@
|
|||||||
package com.gmail.nossr50.skills.repair;
|
package com.gmail.nossr50.skills.repair;
|
||||||
|
|
||||||
import java.lang.reflect.Field;
|
|
||||||
import java.util.Map;
|
import java.util.Map;
|
||||||
import java.util.Map.Entry;
|
import java.util.Map.Entry;
|
||||||
import java.util.Random;
|
import java.util.Random;
|
||||||
|
@ -287,9 +287,6 @@ public class Database {
|
|||||||
boolean isValid = false;
|
boolean isValid = false;
|
||||||
boolean exists = (connection != null);
|
boolean exists = (connection != null);
|
||||||
|
|
||||||
// Initialized as needed later
|
|
||||||
long timestamp=0;
|
|
||||||
|
|
||||||
// If we're waiting for server to recover then leave early
|
// If we're waiting for server to recover then leave early
|
||||||
if (nextReconnectTimestamp > 0 && nextReconnectTimestamp > System.nanoTime()) {
|
if (nextReconnectTimestamp > 0 && nextReconnectTimestamp > System.nanoTime()) {
|
||||||
return false;
|
return false;
|
||||||
|
@ -4,8 +4,6 @@ import org.bukkit.command.CommandSender;
|
|||||||
import org.bukkit.entity.Player;
|
import org.bukkit.entity.Player;
|
||||||
|
|
||||||
public class Permissions {
|
public class Permissions {
|
||||||
private static volatile Permissions instance;
|
|
||||||
|
|
||||||
public static boolean hasPermission(CommandSender sender, String perm)
|
public static boolean hasPermission(CommandSender sender, String perm)
|
||||||
{
|
{
|
||||||
if(sender.hasPermission(perm))
|
if(sender.hasPermission(perm))
|
||||||
|
Loading…
Reference in New Issue
Block a user