mirror of
https://github.com/essentials/Essentials.git
synced 2025-08-15 11:04:29 +02:00
Cleanup
This commit is contained in:
@@ -72,7 +72,8 @@ public class I18n implements II18n
|
|||||||
|
|
||||||
public static String _(final String string, final Object... objects)
|
public static String _(final String string, final Object... objects)
|
||||||
{
|
{
|
||||||
if (instance == null) {
|
if (instance == null)
|
||||||
|
{
|
||||||
return "";
|
return "";
|
||||||
}
|
}
|
||||||
if (objects.length == 0)
|
if (objects.length == 0)
|
||||||
|
@@ -29,5 +29,4 @@ public class EssentialsConnect
|
|||||||
{
|
{
|
||||||
return ess;
|
return ess;
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
@@ -48,7 +48,6 @@ public class EssentialsProtect extends JavaPlugin implements IProtect
|
|||||||
LOGGER.log(Level.SEVERE, "Essentials not installed or failed to load. Essenials Protect is in emergency mode now.");
|
LOGGER.log(Level.SEVERE, "Essentials not installed or failed to load. Essenials Protect is in emergency mode now.");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public EssentialsConnect getEssentialsConnect()
|
public EssentialsConnect getEssentialsConnect()
|
||||||
{
|
{
|
||||||
|
@@ -1,6 +1,5 @@
|
|||||||
package net.ess3.signs;
|
package net.ess3.signs;
|
||||||
|
|
||||||
|
|
||||||
import java.util.HashSet;
|
import java.util.HashSet;
|
||||||
import java.util.Locale;
|
import java.util.Locale;
|
||||||
import java.util.Set;
|
import java.util.Set;
|
||||||
|
@@ -1,6 +1,5 @@
|
|||||||
package net.ess3.signs;
|
package net.ess3.signs;
|
||||||
|
|
||||||
|
|
||||||
import java.io.IOException;
|
import java.io.IOException;
|
||||||
import net.ess3.api.ChargeException;
|
import net.ess3.api.ChargeException;
|
||||||
import net.ess3.api.IEssentials;
|
import net.ess3.api.IEssentials;
|
||||||
@@ -53,6 +52,3 @@ public class SignInfo extends EssentialsSign
|
|||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
@@ -23,7 +23,7 @@ public class SignRepair extends EssentialsSign
|
|||||||
{
|
{
|
||||||
sign.setLine(1, "Hand");
|
sign.setLine(1, "Hand");
|
||||||
}
|
}
|
||||||
else if (!repairTarget.equalsIgnoreCase("all") && !repairTarget.equalsIgnoreCase("hand") )
|
else if (!repairTarget.equalsIgnoreCase("all") && !repairTarget.equalsIgnoreCase("hand"))
|
||||||
{
|
{
|
||||||
throw new SignException(_("invalidSignLine", 2));
|
throw new SignException(_("invalidSignLine", 2));
|
||||||
}
|
}
|
||||||
|
@@ -11,7 +11,6 @@ import org.bukkit.inventory.ItemStack;
|
|||||||
//TODO: Sell Enchantment on Trade signs?
|
//TODO: Sell Enchantment on Trade signs?
|
||||||
public class SignTrade extends EssentialsSign
|
public class SignTrade extends EssentialsSign
|
||||||
{
|
{
|
||||||
|
|
||||||
public SignTrade()
|
public SignTrade()
|
||||||
{
|
{
|
||||||
super("Trade");
|
super("Trade");
|
||||||
|
@@ -19,19 +19,19 @@ class EssentialsXMPPPlayerListener implements Listener
|
|||||||
this.ess = ess;
|
this.ess = ess;
|
||||||
}
|
}
|
||||||
|
|
||||||
@EventHandler(priority= EventPriority.MONITOR)
|
@EventHandler(priority = EventPriority.MONITOR)
|
||||||
public void onPlayerJoin(final PlayerJoinEvent event)
|
public void onPlayerJoin(final PlayerJoinEvent event)
|
||||||
{
|
{
|
||||||
sendMessageToSpyUsers("Player " + event.getPlayer().getDisplayName() + " joined the game");
|
sendMessageToSpyUsers("Player " + event.getPlayer().getDisplayName() + " joined the game");
|
||||||
}
|
}
|
||||||
|
|
||||||
@EventHandler(priority= EventPriority.MONITOR)
|
@EventHandler(priority = EventPriority.MONITOR)
|
||||||
public void onPlayerChat(final PlayerChatEvent event)
|
public void onPlayerChat(final PlayerChatEvent event)
|
||||||
{
|
{
|
||||||
sendMessageToSpyUsers(String.format(event.getFormat(), event.getPlayer().getDisplayName(), event.getMessage()));
|
sendMessageToSpyUsers(String.format(event.getFormat(), event.getPlayer().getDisplayName(), event.getMessage()));
|
||||||
}
|
}
|
||||||
|
|
||||||
@EventHandler(priority= EventPriority.MONITOR)
|
@EventHandler(priority = EventPriority.MONITOR)
|
||||||
public void onPlayerQuit(final PlayerQuitEvent event)
|
public void onPlayerQuit(final PlayerQuitEvent event)
|
||||||
{
|
{
|
||||||
sendMessageToSpyUsers("Player " + event.getPlayer().getDisplayName() + " left the game");
|
sendMessageToSpyUsers("Player " + event.getPlayer().getDisplayName() + " left the game");
|
||||||
|
Reference in New Issue
Block a user