1
0
mirror of https://github.com/essentials/Essentials.git synced 2025-09-01 02:32:17 +02:00

Cleanup signs, update and xmpp, more to come.

This commit is contained in:
md_5
2012-06-27 20:03:26 +10:00
parent 3d96c9caaf
commit 7bef2d3817
35 changed files with 137 additions and 184 deletions

View File

@@ -37,4 +37,4 @@ public class Commandxmppspy extends EssentialsCommand
}
}
}
}
}

View File

@@ -1,10 +1,10 @@
package com.earth2me.essentials.xmpp;
import com.earth2me.essentials.commands.EssentialsCommandHandler;
import static com.earth2me.essentials.I18n._;
import com.earth2me.essentials.api.ICommandHandler;
import com.earth2me.essentials.api.IEssentials;
import com.earth2me.essentials.api.IUser;
import com.earth2me.essentials.commands.EssentialsCommandHandler;
import java.util.List;
import java.util.Locale;
import java.util.logging.Level;
@@ -55,7 +55,7 @@ public class EssentialsXMPP extends JavaPlugin implements IEssentialsXMPP
ess.addReloadListener(users);
ess.addReloadListener(xmpp);
commandHandler = new EssentialsCommandHandler(EssentialsXMPP.class.getClassLoader(), "com.earth2me.essentials.xmpp.Command", "essentials.", ess);
}

View File

@@ -11,14 +11,14 @@ import java.util.logging.LogRecord;
import java.util.logging.Logger;
import org.bukkit.configuration.file.YamlConfiguration;
import org.bukkit.entity.Player;
import org.jivesoftware.smack.Roster.SubscriptionMode;
import org.jivesoftware.smack.*;
import org.jivesoftware.smack.Roster.SubscriptionMode;
import org.jivesoftware.smack.packet.Message;
import org.jivesoftware.smack.packet.Presence;
import org.jivesoftware.smack.util.StringUtils;
public class XMPPManager extends Handler implements MessageListener, ChatManagerListener, IReload
public final class XMPPManager extends Handler implements MessageListener, ChatManagerListener, IReload
{
private static final Logger LOGGER = Logger.getLogger("Minecraft");
private transient YamlConfiguration config = null;
@@ -132,7 +132,7 @@ public class XMPPManager extends Handler implements MessageListener, ChatManager
}
}
public final void disconnect()
public void disconnect()
{
if (loggerThread != null)
{
@@ -165,7 +165,7 @@ public class XMPPManager extends Handler implements MessageListener, ChatManager
}
@Override
public final void onReload()
public void onReload()
{
LOGGER.removeHandler(this);
config = YamlConfiguration.loadConfiguration(new File(parent.getDataFolder(), "config.yml"));