diff options
author | snowleo <schneeleo@gmail.com> | 2011-08-28 23:51:10 +0200 |
---|---|---|
committer | snowleo <schneeleo@gmail.com> | 2011-08-28 23:51:10 +0200 |
commit | 12e3eb1a234f991b6c7b136665de2ddd74fde1ab (patch) | |
tree | bff92b2ff51a357c0a15fd0f32ab347d979264bd | |
parent | a60f040f7e201921c9aaf98d1eb47761d5ac2a09 (diff) | |
download | Essentials-12e3eb1a234f991b6c7b136665de2ddd74fde1ab.tar Essentials-12e3eb1a234f991b6c7b136665de2ddd74fde1ab.tar.gz Essentials-12e3eb1a234f991b6c7b136665de2ddd74fde1ab.tar.lz Essentials-12e3eb1a234f991b6c7b136665de2ddd74fde1ab.tar.xz Essentials-12e3eb1a234f991b6c7b136665de2ddd74fde1ab.zip |
Fix compatibility issues with Citizens
3 files changed, 1 insertions, 10 deletions
diff --git a/Essentials/src/com/earth2me/essentials/Essentials.java b/Essentials/src/com/earth2me/essentials/Essentials.java index cc465d7bf..43d397fda 100644 --- a/Essentials/src/com/earth2me/essentials/Essentials.java +++ b/Essentials/src/com/earth2me/essentials/Essentials.java @@ -564,7 +564,7 @@ public class Essentials extends JavaPlugin implements IEssentials } catch (NullPointerException ex) { - return null; + return new User(base, this); } } diff --git a/Essentials/src/com/earth2me/essentials/EssentialsConf.java b/Essentials/src/com/earth2me/essentials/EssentialsConf.java index 2e3920eba..c48f9f987 100644 --- a/Essentials/src/com/earth2me/essentials/EssentialsConf.java +++ b/Essentials/src/com/earth2me/essentials/EssentialsConf.java @@ -47,11 +47,6 @@ public class EssentialsConf extends Configuration LOGGER.log(Level.SEVERE, Util.format("failedToCreateConfig", configFile.toString())); } } - if (configFile.exists() && configFile.length() == 0 && !configFile.delete()) - { - LOGGER.log(Level.SEVERE, "Could not delete file " + configFile.toString()); - } - // This will delete files where the first character is 0. In most cases they are broken. if (configFile.exists() && configFile.length() != 0) { diff --git a/Essentials/src/com/earth2me/essentials/EssentialsPlayerListener.java b/Essentials/src/com/earth2me/essentials/EssentialsPlayerListener.java index fbd6995c5..66de8ef29 100644 --- a/Essentials/src/com/earth2me/essentials/EssentialsPlayerListener.java +++ b/Essentials/src/com/earth2me/essentials/EssentialsPlayerListener.java @@ -315,10 +315,6 @@ public class EssentialsPlayerListener extends PlayerListener return; } User user = ess.getUser(event.getPlayer()); - if (user == null) - { - user = new User(event.getPlayer(), ess); - } user.setNPC(false); final long currentTime = System.currentTimeMillis(); |