mirror of
https://github.com/TotalFreedomMC/TF-EssentialsX.git
synced 2025-04-28 01:10:52 +00:00
Cleanup various aspects of code, fix some formatting, more netbeans 7.4 stuff
This commit is contained in:
parent
d5196e31b2
commit
3e725ef060
65 changed files with 432 additions and 443 deletions
|
@ -6,7 +6,7 @@ import org.bukkit.command.CommandSender;
|
||||||
|
|
||||||
public final class Console implements IReplyTo
|
public final class Console implements IReplyTo
|
||||||
{
|
{
|
||||||
private static Console instance = new Console();
|
private static final Console instance = new Console();
|
||||||
private CommandSource replyTo;
|
private CommandSource replyTo;
|
||||||
public final static String NAME = "Console";
|
public final static String NAME = "Console";
|
||||||
|
|
||||||
|
|
|
@ -240,7 +240,7 @@ public class Essentials extends JavaPlugin implements net.ess3.api.IEssentials
|
||||||
LOGGER.log(Level.INFO, "Essentials load " + timeroutput);
|
LOGGER.log(Level.INFO, "Essentials load " + timeroutput);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
catch (Exception ex)
|
catch (NumberFormatException ex)
|
||||||
{
|
{
|
||||||
handleCrash(ex);
|
handleCrash(ex);
|
||||||
}
|
}
|
||||||
|
@ -527,7 +527,7 @@ public class Essentials extends JavaPlugin implements net.ess3.api.IEssentials
|
||||||
}
|
}
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
catch (Throwable ex)
|
catch (Exception ex)
|
||||||
{
|
{
|
||||||
showError(sender, ex, commandLabel);
|
showError(sender, ex, commandLabel);
|
||||||
return true;
|
return true;
|
||||||
|
@ -600,11 +600,13 @@ public class Essentials extends JavaPlugin implements net.ess3.api.IEssentials
|
||||||
return backup;
|
return backup;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public Metrics getMetrics()
|
public Metrics getMetrics()
|
||||||
{
|
{
|
||||||
return metrics;
|
return metrics;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public void setMetrics(Metrics metrics)
|
public void setMetrics(Metrics metrics)
|
||||||
{
|
{
|
||||||
this.metrics = metrics;
|
this.metrics = metrics;
|
||||||
|
|
|
@ -19,8 +19,8 @@ import org.bukkit.inventory.ItemStack;
|
||||||
public class EssentialsEntityListener implements Listener
|
public class EssentialsEntityListener implements Listener
|
||||||
{
|
{
|
||||||
private static final Logger LOGGER = Logger.getLogger("Minecraft");
|
private static final Logger LOGGER = Logger.getLogger("Minecraft");
|
||||||
private final IEssentials ess;
|
|
||||||
private static final transient Pattern powertoolPlayer = Pattern.compile("\\{player\\}");
|
private static final transient Pattern powertoolPlayer = Pattern.compile("\\{player\\}");
|
||||||
|
private final IEssentials ess;
|
||||||
|
|
||||||
public EssentialsEntityListener(IEssentials ess)
|
public EssentialsEntityListener(IEssentials ess)
|
||||||
{
|
{
|
||||||
|
|
|
@ -1,6 +1,7 @@
|
||||||
package com.earth2me.essentials;
|
package com.earth2me.essentials;
|
||||||
|
|
||||||
import com.earth2me.essentials.perm.PermissionsHandler;
|
import com.earth2me.essentials.perm.PermissionsHandler;
|
||||||
|
import com.earth2me.essentials.register.payment.Methods;
|
||||||
import java.util.logging.Level;
|
import java.util.logging.Level;
|
||||||
import net.ess3.api.IEssentials;
|
import net.ess3.api.IEssentials;
|
||||||
import org.bukkit.event.EventHandler;
|
import org.bukkit.event.EventHandler;
|
||||||
|
@ -28,9 +29,9 @@ public class EssentialsPluginListener implements Listener, IConf
|
||||||
}
|
}
|
||||||
ess.getPermissionsHandler().checkPermissions();
|
ess.getPermissionsHandler().checkPermissions();
|
||||||
ess.getAlternativeCommandsHandler().addPlugin(event.getPlugin());
|
ess.getAlternativeCommandsHandler().addPlugin(event.getPlugin());
|
||||||
if (!ess.getPaymentMethod().hasMethod() && ess.getPaymentMethod().setMethod(ess.getServer().getPluginManager()))
|
if (!Methods.hasMethod() && Methods.setMethod(ess.getServer().getPluginManager()))
|
||||||
{
|
{
|
||||||
ess.getLogger().log(Level.INFO, "Payment method found (" + ess.getPaymentMethod().getMethod().getLongName() + " version: " + ess.getPaymentMethod().getMethod().getVersion() + ")");
|
ess.getLogger().log(Level.INFO, "Payment method found (" + Methods.getMethod().getLongName() + " version: " + ess.getPaymentMethod().getMethod().getVersion() + ")");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -48,7 +49,7 @@ public class EssentialsPluginListener implements Listener, IConf
|
||||||
}
|
}
|
||||||
ess.getAlternativeCommandsHandler().removePlugin(event.getPlugin());
|
ess.getAlternativeCommandsHandler().removePlugin(event.getPlugin());
|
||||||
// Check to see if the plugin thats being disabled is the one we are using
|
// Check to see if the plugin thats being disabled is the one we are using
|
||||||
if (ess.getPaymentMethod() != null && ess.getPaymentMethod().hasMethod() && ess.getPaymentMethod().checkDisabled(event.getPlugin()))
|
if (ess.getPaymentMethod() != null && Methods.hasMethod() && Methods.checkDisabled(event.getPlugin()))
|
||||||
{
|
{
|
||||||
ess.getPaymentMethod().reset();
|
ess.getPaymentMethod().reset();
|
||||||
ess.getLogger().log(Level.INFO, "Payment method was disabled. No longer accepting payments.");
|
ess.getLogger().log(Level.INFO, "Payment method was disabled. No longer accepting payments.");
|
||||||
|
|
|
@ -71,7 +71,7 @@ public class EssentialsUpgrade
|
||||||
doneFile.setProperty("moveWorthValuesToWorthYml", true);
|
doneFile.setProperty("moveWorthValuesToWorthYml", true);
|
||||||
doneFile.save();
|
doneFile.save();
|
||||||
}
|
}
|
||||||
catch (Throwable e)
|
catch (Exception e)
|
||||||
{
|
{
|
||||||
LOGGER.log(Level.SEVERE, _("upgradingFilesError"), e);
|
LOGGER.log(Level.SEVERE, _("upgradingFilesError"), e);
|
||||||
}
|
}
|
||||||
|
@ -115,7 +115,7 @@ public class EssentialsUpgrade
|
||||||
doneFile.setProperty("move" + name + "ToFile", true);
|
doneFile.setProperty("move" + name + "ToFile", true);
|
||||||
doneFile.save();
|
doneFile.save();
|
||||||
}
|
}
|
||||||
catch (Throwable e)
|
catch (IOException e)
|
||||||
{
|
{
|
||||||
LOGGER.log(Level.SEVERE, _("upgradingFilesError"), e);
|
LOGGER.log(Level.SEVERE, _("upgradingFilesError"), e);
|
||||||
}
|
}
|
||||||
|
@ -575,10 +575,10 @@ public class EssentialsUpgrade
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
final File[] listOfFiles = usersFolder.listFiles();
|
final File[] listOfFiles = usersFolder.listFiles();
|
||||||
for (int i = 0; i < listOfFiles.length; i++)
|
for (File listOfFile : listOfFiles)
|
||||||
{
|
{
|
||||||
final String filename = listOfFiles[i].getName();
|
final String filename = listOfFile.getName();
|
||||||
if (!listOfFiles[i].isFile() || !filename.endsWith(".yml"))
|
if (!listOfFile.isFile() || !filename.endsWith(".yml"))
|
||||||
{
|
{
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
@ -587,9 +587,9 @@ public class EssentialsUpgrade
|
||||||
{
|
{
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
final File tmpFile = new File(listOfFiles[i].getParentFile(), sanitizedFilename + ".tmp");
|
final File tmpFile = new File(listOfFile.getParentFile(), sanitizedFilename + ".tmp");
|
||||||
final File newFile = new File(listOfFiles[i].getParentFile(), sanitizedFilename);
|
final File newFile = new File(listOfFile.getParentFile(), sanitizedFilename);
|
||||||
if (!listOfFiles[i].renameTo(tmpFile))
|
if (!listOfFile.renameTo(tmpFile))
|
||||||
{
|
{
|
||||||
LOGGER.log(Level.WARNING, _("userdataMoveError", filename, sanitizedFilename));
|
LOGGER.log(Level.WARNING, _("userdataMoveError", filename, sanitizedFilename));
|
||||||
continue;
|
continue;
|
||||||
|
|
|
@ -13,12 +13,6 @@ import org.bukkit.inventory.ItemStack;
|
||||||
public class ItemDb implements IConf, net.ess3.api.IItemDb
|
public class ItemDb implements IConf, net.ess3.api.IItemDb
|
||||||
{
|
{
|
||||||
private final transient IEssentials ess;
|
private final transient IEssentials ess;
|
||||||
|
|
||||||
public ItemDb(final IEssentials ess)
|
|
||||||
{
|
|
||||||
this.ess = ess;
|
|
||||||
file = new ManagedFile("items.csv", ess);
|
|
||||||
}
|
|
||||||
private final transient Map<String, Integer> items = new HashMap<String, Integer>();
|
private final transient Map<String, Integer> items = new HashMap<String, Integer>();
|
||||||
private final transient Map<ItemData, List<String>> names = new HashMap<ItemData, List<String>>();
|
private final transient Map<ItemData, List<String>> names = new HashMap<ItemData, List<String>>();
|
||||||
private final transient Map<ItemData, String> primaryName = new HashMap<ItemData, String>();
|
private final transient Map<ItemData, String> primaryName = new HashMap<ItemData, String>();
|
||||||
|
@ -26,6 +20,12 @@ public class ItemDb implements IConf, net.ess3.api.IItemDb
|
||||||
private final transient ManagedFile file;
|
private final transient ManagedFile file;
|
||||||
private final transient Pattern splitPattern = Pattern.compile("[:+',;.]");
|
private final transient Pattern splitPattern = Pattern.compile("[:+',;.]");
|
||||||
|
|
||||||
|
public ItemDb(final IEssentials ess)
|
||||||
|
{
|
||||||
|
this.ess = ess;
|
||||||
|
file = new ManagedFile("items.csv", ess);
|
||||||
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void reloadConfig()
|
public void reloadConfig()
|
||||||
{
|
{
|
||||||
|
@ -193,7 +193,7 @@ public class ItemDb implements IConf, net.ess3.api.IItemDb
|
||||||
return is;
|
return is;
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public String names(ItemStack item)
|
public String names(ItemStack item)
|
||||||
{
|
{
|
||||||
ItemData itemData = new ItemData(item.getTypeId(), item.getDurability());
|
ItemData itemData = new ItemData(item.getTypeId(), item.getDurability());
|
||||||
|
|
|
@ -22,21 +22,8 @@ import org.bukkit.potion.PotionEffectType;
|
||||||
|
|
||||||
public class MetaItemStack
|
public class MetaItemStack
|
||||||
{
|
{
|
||||||
private final transient Pattern splitPattern = Pattern.compile("[:+',;.]");
|
|
||||||
private final ItemStack stack;
|
|
||||||
private final static Map<String, DyeColor> colorMap = new HashMap<String, DyeColor>();
|
private final static Map<String, DyeColor> colorMap = new HashMap<String, DyeColor>();
|
||||||
private final static Map<String, FireworkEffect.Type> fireworkShape = new HashMap<String, FireworkEffect.Type>();
|
private final static Map<String, FireworkEffect.Type> fireworkShape = new HashMap<String, FireworkEffect.Type>();
|
||||||
private FireworkEffect.Builder builder = FireworkEffect.builder();
|
|
||||||
private PotionEffectType pEffectType;
|
|
||||||
private PotionEffect pEffect;
|
|
||||||
private boolean validFirework = false;
|
|
||||||
private boolean validPotionEffect = false;
|
|
||||||
private boolean validPotionDuration = false;
|
|
||||||
private boolean validPotionPower = false;
|
|
||||||
private boolean completePotion = false;
|
|
||||||
private int power = 1;
|
|
||||||
private int duration = 120;
|
|
||||||
|
|
||||||
static
|
static
|
||||||
{
|
{
|
||||||
for (DyeColor color : DyeColor.values())
|
for (DyeColor color : DyeColor.values())
|
||||||
|
@ -48,6 +35,18 @@ public class MetaItemStack
|
||||||
fireworkShape.put(type.name(), type);
|
fireworkShape.put(type.name(), type);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
private final transient Pattern splitPattern = Pattern.compile("[:+',;.]");
|
||||||
|
private final ItemStack stack;
|
||||||
|
private FireworkEffect.Builder builder = FireworkEffect.builder();
|
||||||
|
private PotionEffectType pEffectType;
|
||||||
|
private PotionEffect pEffect;
|
||||||
|
private boolean validFirework = false;
|
||||||
|
private boolean validPotionEffect = false;
|
||||||
|
private boolean validPotionDuration = false;
|
||||||
|
private boolean validPotionPower = false;
|
||||||
|
private boolean completePotion = false;
|
||||||
|
private int power = 1;
|
||||||
|
private int duration = 120;
|
||||||
|
|
||||||
public MetaItemStack(final ItemStack stack)
|
public MetaItemStack(final ItemStack stack)
|
||||||
{
|
{
|
||||||
|
@ -150,7 +149,7 @@ public class MetaItemStack
|
||||||
{
|
{
|
||||||
final String owner = split[1];
|
final String owner = split[1];
|
||||||
final SkullMeta meta = (SkullMeta)stack.getItemMeta();
|
final SkullMeta meta = (SkullMeta)stack.getItemMeta();
|
||||||
boolean result = meta.setOwner(owner);
|
meta.setOwner(owner);
|
||||||
stack.setItemMeta(meta);
|
stack.setItemMeta(meta);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
|
|
@ -281,7 +281,7 @@ public enum MobData
|
||||||
((ExperienceOrb)spawned).setExperience(Integer.parseInt(rawData));
|
((ExperienceOrb)spawned).setExperience(Integer.parseInt(rawData));
|
||||||
this.matched = rawData;
|
this.matched = rawData;
|
||||||
}
|
}
|
||||||
catch (Exception e)
|
catch (NumberFormatException e)
|
||||||
{
|
{
|
||||||
throw new Exception(_("invalidNumber"), e);
|
throw new Exception(_("invalidNumber"), e);
|
||||||
}
|
}
|
||||||
|
@ -293,7 +293,7 @@ public enum MobData
|
||||||
((Slime)spawned).setSize(Integer.parseInt(rawData));
|
((Slime)spawned).setSize(Integer.parseInt(rawData));
|
||||||
this.matched = rawData;
|
this.matched = rawData;
|
||||||
}
|
}
|
||||||
catch (Exception e)
|
catch (NumberFormatException e)
|
||||||
{
|
{
|
||||||
throw new Exception(_("slimeMalformedSize"), e);
|
throw new Exception(_("slimeMalformedSize"), e);
|
||||||
}
|
}
|
||||||
|
|
|
@ -104,7 +104,7 @@ public class PlayerList
|
||||||
for (String groupValue : groupValues)
|
for (String groupValue : groupValues)
|
||||||
{
|
{
|
||||||
groupValue = groupValue.toLowerCase(Locale.ENGLISH);
|
groupValue = groupValue.toLowerCase(Locale.ENGLISH);
|
||||||
if (groupValue == null || groupValue.equals(""))
|
if (groupValue == null || groupValue.isEmpty())
|
||||||
{
|
{
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
|
@ -402,7 +402,7 @@ public class Settings implements net.ess3.api.ISettings
|
||||||
{
|
{
|
||||||
return config.getString("backup.command", null);
|
return config.getString("backup.command", null);
|
||||||
}
|
}
|
||||||
private Map<String, String> chatFormats = Collections.synchronizedMap(new HashMap<String, String>());
|
private final Map<String, String> chatFormats = Collections.synchronizedMap(new HashMap<String, String>());
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public String getChatFormat(String group)
|
public String getChatFormat(String group)
|
||||||
|
@ -1114,6 +1114,7 @@ public class Settings implements net.ess3.api.ISettings
|
||||||
}
|
}
|
||||||
|
|
||||||
// #easteregg
|
// #easteregg
|
||||||
|
@Override
|
||||||
public int getMaxUserCacheCount()
|
public int getMaxUserCacheCount()
|
||||||
{
|
{
|
||||||
long count = Runtime.getRuntime().maxMemory() / 1024 / 96;
|
long count = Runtime.getRuntime().maxMemory() / 1024 / 96;
|
||||||
|
|
|
@ -212,7 +212,7 @@ public class SpawnMob
|
||||||
{
|
{
|
||||||
String data = inputData;
|
String data = inputData;
|
||||||
|
|
||||||
if (data.equals(""))
|
if (data.isEmpty())
|
||||||
{
|
{
|
||||||
sender.sendMessage(_("mobDataList", StringUtil.joinList(MobData.getValidHelp(spawned))));
|
sender.sendMessage(_("mobDataList", StringUtil.joinList(MobData.getValidHelp(spawned))));
|
||||||
}
|
}
|
||||||
|
|
|
@ -102,6 +102,7 @@ public class Teleport implements net.ess3.api.ITeleport
|
||||||
//The teleportPlayer function is used when you want to normally teleportPlayer someone to a location or player.
|
//The teleportPlayer function is used when you want to normally teleportPlayer someone to a location or player.
|
||||||
//This method is nolonger used internally and will be removed.
|
//This method is nolonger used internally and will be removed.
|
||||||
@Deprecated
|
@Deprecated
|
||||||
|
@Override
|
||||||
public void teleport(Location loc, Trade chargeFor) throws Exception
|
public void teleport(Location loc, Trade chargeFor) throws Exception
|
||||||
{
|
{
|
||||||
teleport(loc, chargeFor, TeleportCause.PLUGIN);
|
teleport(loc, chargeFor, TeleportCause.PLUGIN);
|
||||||
|
|
|
@ -13,22 +13,22 @@ public class TimedTeleport implements Runnable
|
||||||
private final IUser teleportOwner;
|
private final IUser teleportOwner;
|
||||||
private final IEssentials ess;
|
private final IEssentials ess;
|
||||||
private final Teleport teleport;
|
private final Teleport teleport;
|
||||||
private String timer_teleportee;
|
private final String timer_teleportee;
|
||||||
private int timer_task = -1;
|
private int timer_task = -1;
|
||||||
private long timer_started; // time this task was initiated
|
private final long timer_started; // time this task was initiated
|
||||||
private long timer_delay; // how long to delay the teleportPlayer
|
private final long timer_delay; // how long to delay the teleportPlayer
|
||||||
private double timer_health;
|
private double timer_health;
|
||||||
// note that I initially stored a clone of the location for reference, but...
|
// note that I initially stored a clone of the location for reference, but...
|
||||||
// when comparing locations, I got incorrect mismatches (rounding errors, looked like)
|
// when comparing locations, I got incorrect mismatches (rounding errors, looked like)
|
||||||
// so, the X/Y/Z values are stored instead and rounded off
|
// so, the X/Y/Z values are stored instead and rounded off
|
||||||
private long timer_initX;
|
private final long timer_initX;
|
||||||
private long timer_initY;
|
private final long timer_initY;
|
||||||
private long timer_initZ;
|
private final long timer_initZ;
|
||||||
private ITarget timer_teleportTarget;
|
private final ITarget timer_teleportTarget;
|
||||||
private boolean timer_respawn;
|
private final boolean timer_respawn;
|
||||||
private boolean timer_canMove;
|
private final boolean timer_canMove;
|
||||||
private Trade timer_chargeFor;
|
private final Trade timer_chargeFor;
|
||||||
private TeleportCause timer_cause;
|
private final TeleportCause timer_cause;
|
||||||
|
|
||||||
public TimedTeleport(IUser user, IEssentials ess, Teleport teleport, long delay, IUser teleportUser, ITarget target, Trade chargeFor, TeleportCause cause, boolean respawn)
|
public TimedTeleport(IUser user, IEssentials ess, Teleport teleport, long delay, IUser teleportUser, ITarget target, Trade chargeFor, TeleportCause cause, boolean respawn)
|
||||||
{
|
{
|
||||||
|
@ -112,7 +112,7 @@ public class TimedTeleport implements Runnable
|
||||||
timer_chargeFor.charge(teleportOwner);
|
timer_chargeFor.charge(teleportOwner);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
catch (Throwable ex)
|
catch (Exception ex)
|
||||||
{
|
{
|
||||||
ess.showError(teleportOwner.getSource(), ex, "teleport");
|
ess.showError(teleportOwner.getSource(), ex, "teleport");
|
||||||
}
|
}
|
||||||
|
|
|
@ -3,6 +3,7 @@ package com.earth2me.essentials;
|
||||||
import static com.earth2me.essentials.I18n._;
|
import static com.earth2me.essentials.I18n._;
|
||||||
import com.earth2me.essentials.commands.IEssentialsCommand;
|
import com.earth2me.essentials.commands.IEssentialsCommand;
|
||||||
import com.earth2me.essentials.register.payment.Method;
|
import com.earth2me.essentials.register.payment.Method;
|
||||||
|
import com.earth2me.essentials.register.payment.Methods;
|
||||||
import com.earth2me.essentials.utils.DateUtil;
|
import com.earth2me.essentials.utils.DateUtil;
|
||||||
import com.earth2me.essentials.utils.FormatUtil;
|
import com.earth2me.essentials.utils.FormatUtil;
|
||||||
import com.earth2me.essentials.utils.NumberUtil;
|
import com.earth2me.essentials.utils.NumberUtil;
|
||||||
|
@ -23,6 +24,7 @@ import org.bukkit.potion.PotionEffectType;
|
||||||
|
|
||||||
public class User extends UserData implements Comparable<User>, IReplyTo, net.ess3.api.IUser
|
public class User extends UserData implements Comparable<User>, IReplyTo, net.ess3.api.IUser
|
||||||
{
|
{
|
||||||
|
private static final Logger logger = Logger.getLogger("Minecraft");
|
||||||
private CommandSource replyTo = null;
|
private CommandSource replyTo = null;
|
||||||
private transient String teleportRequester;
|
private transient String teleportRequester;
|
||||||
private transient boolean teleportRequestHere;
|
private transient boolean teleportRequestHere;
|
||||||
|
@ -39,7 +41,7 @@ public class User extends UserData implements Comparable<User>, IReplyTo, net.es
|
||||||
private boolean invSee = false;
|
private boolean invSee = false;
|
||||||
private boolean recipeSee = false;
|
private boolean recipeSee = false;
|
||||||
private boolean enderSee = false;
|
private boolean enderSee = false;
|
||||||
private static final Logger logger = Logger.getLogger("Minecraft");
|
private transient long teleportInvulnerabilityTimestamp = 0;
|
||||||
|
|
||||||
User(final Player base, final IEssentials ess)
|
User(final Player base, final IEssentials ess)
|
||||||
{
|
{
|
||||||
|
@ -417,19 +419,19 @@ public class User extends UserData implements Comparable<User>, IReplyTo, net.es
|
||||||
}
|
}
|
||||||
return BigDecimal.ZERO;
|
return BigDecimal.ZERO;
|
||||||
}
|
}
|
||||||
if (ess.getPaymentMethod().hasMethod())
|
if (Methods.hasMethod())
|
||||||
{
|
{
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
final Method method = ess.getPaymentMethod().getMethod();
|
final Method method = Methods.getMethod();
|
||||||
if (!method.hasAccount(this.getName()))
|
if (!method.hasAccount(this.getName()))
|
||||||
{
|
{
|
||||||
throw new Exception();
|
throw new Exception();
|
||||||
}
|
}
|
||||||
final Method.MethodAccount account = ess.getPaymentMethod().getMethod().getAccount(this.getName());
|
final Method.MethodAccount account = Methods.getMethod().getAccount(this.getName());
|
||||||
return BigDecimal.valueOf(account.balance());
|
return BigDecimal.valueOf(account.balance());
|
||||||
}
|
}
|
||||||
catch (Throwable ex)
|
catch (Exception ex)
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -447,19 +449,19 @@ public class User extends UserData implements Comparable<User>, IReplyTo, net.es
|
||||||
}
|
}
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
if (ess.getPaymentMethod().hasMethod())
|
if (Methods.hasMethod())
|
||||||
{
|
{
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
final Method method = ess.getPaymentMethod().getMethod();
|
final Method method = Methods.getMethod();
|
||||||
if (!method.hasAccount(this.getName()))
|
if (!method.hasAccount(this.getName()))
|
||||||
{
|
{
|
||||||
throw new Exception();
|
throw new Exception();
|
||||||
}
|
}
|
||||||
final Method.MethodAccount account = ess.getPaymentMethod().getMethod().getAccount(this.getName());
|
final Method.MethodAccount account = Methods.getMethod().getAccount(this.getName());
|
||||||
account.set(value.doubleValue());
|
account.set(value.doubleValue());
|
||||||
}
|
}
|
||||||
catch (Throwable ex)
|
catch (Exception ex)
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -473,7 +475,7 @@ public class User extends UserData implements Comparable<User>, IReplyTo, net.es
|
||||||
{
|
{
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
if (ess.getPaymentMethod().hasMethod() && super.getMoney() != value)
|
if (Methods.hasMethod() && super.getMoney() != value)
|
||||||
{
|
{
|
||||||
super.setMoney(value);
|
super.setMoney(value);
|
||||||
}
|
}
|
||||||
|
@ -698,7 +700,6 @@ public class User extends UserData implements Comparable<User>, IReplyTo, net.es
|
||||||
{
|
{
|
||||||
enderSee = set;
|
enderSee = set;
|
||||||
}
|
}
|
||||||
private transient long teleportInvulnerabilityTimestamp = 0;
|
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void enableInvulnerabilityAfterTeleport()
|
public void enableInvulnerabilityAfterTeleport()
|
||||||
|
@ -720,6 +721,7 @@ public class User extends UserData implements Comparable<User>, IReplyTo, net.es
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public boolean hasInvulnerabilityAfterTeleport()
|
public boolean hasInvulnerabilityAfterTeleport()
|
||||||
{
|
{
|
||||||
return teleportInvulnerabilityTimestamp != 0 && teleportInvulnerabilityTimestamp >= System.currentTimeMillis();
|
return teleportInvulnerabilityTimestamp != 0 && teleportInvulnerabilityTimestamp >= System.currentTimeMillis();
|
||||||
|
@ -857,6 +859,7 @@ public class User extends UserData implements Comparable<User>, IReplyTo, net.es
|
||||||
return this.getName().hashCode();
|
return this.getName().hashCode();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public CommandSource getSource()
|
public CommandSource getSource()
|
||||||
{
|
{
|
||||||
return new CommandSource(getBase());
|
return new CommandSource(getBase());
|
||||||
|
|
|
@ -7,6 +7,7 @@ import java.io.File;
|
||||||
import java.math.BigDecimal;
|
import java.math.BigDecimal;
|
||||||
import java.util.*;
|
import java.util.*;
|
||||||
import net.ess3.api.IEssentials;
|
import net.ess3.api.IEssentials;
|
||||||
|
import net.ess3.api.InvalidWorldException;
|
||||||
import org.bukkit.Location;
|
import org.bukkit.Location;
|
||||||
import org.bukkit.configuration.ConfigurationSection;
|
import org.bukkit.configuration.ConfigurationSection;
|
||||||
import org.bukkit.entity.Player;
|
import org.bukkit.entity.Player;
|
||||||
|
@ -133,7 +134,7 @@ public abstract class UserData extends PlayerExtension implements IConf
|
||||||
{
|
{
|
||||||
search = getHomes().get(Integer.parseInt(search) - 1);
|
search = getHomes().get(Integer.parseInt(search) - 1);
|
||||||
}
|
}
|
||||||
catch (Exception e)
|
catch (NumberFormatException e)
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -167,7 +168,7 @@ public abstract class UserData extends PlayerExtension implements IConf
|
||||||
loc = config.getLocation("homes." + getHomes().get(0), getServer());
|
loc = config.getLocation("homes." + getHomes().get(0), getServer());
|
||||||
return loc;
|
return loc;
|
||||||
}
|
}
|
||||||
catch (Exception ex)
|
catch (InvalidWorldException ex)
|
||||||
{
|
{
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
@ -318,7 +319,7 @@ public abstract class UserData extends PlayerExtension implements IConf
|
||||||
{
|
{
|
||||||
return config.getLocation("lastlocation", getServer());
|
return config.getLocation("lastlocation", getServer());
|
||||||
}
|
}
|
||||||
catch (Exception e)
|
catch (InvalidWorldException e)
|
||||||
{
|
{
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
@ -347,7 +348,7 @@ public abstract class UserData extends PlayerExtension implements IConf
|
||||||
{
|
{
|
||||||
return config.getLocation("logoutlocation", getServer());
|
return config.getLocation("logoutlocation", getServer());
|
||||||
}
|
}
|
||||||
catch (Exception e)
|
catch (InvalidWorldException e)
|
||||||
{
|
{
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
|
|
@ -22,9 +22,9 @@ public class Commandbalancetop extends EssentialsCommand
|
||||||
}
|
}
|
||||||
private static final int CACHETIME = 2 * 60 * 1000;
|
private static final int CACHETIME = 2 * 60 * 1000;
|
||||||
public static final int MINUSERS = 50;
|
public static final int MINUSERS = 50;
|
||||||
private static SimpleTextInput cache = new SimpleTextInput();
|
private static final SimpleTextInput cache = new SimpleTextInput();
|
||||||
private static long cacheage = 0;
|
private static long cacheage = 0;
|
||||||
private static ReentrantReadWriteLock lock = new ReentrantReadWriteLock();
|
private static final ReentrantReadWriteLock lock = new ReentrantReadWriteLock();
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
protected void run(final Server server, final CommandSource sender, final String commandLabel, final String[] args) throws Exception
|
protected void run(final Server server, final CommandSource sender, final String commandLabel, final String[] args) throws Exception
|
||||||
|
|
|
@ -8,7 +8,6 @@ import com.earth2me.essentials.User;
|
||||||
import com.earth2me.essentials.utils.FormatUtil;
|
import com.earth2me.essentials.utils.FormatUtil;
|
||||||
import java.util.logging.Level;
|
import java.util.logging.Level;
|
||||||
import org.bukkit.Server;
|
import org.bukkit.Server;
|
||||||
import org.bukkit.entity.Player;
|
|
||||||
|
|
||||||
|
|
||||||
public class Commandban extends EssentialsCommand
|
public class Commandban extends EssentialsCommand
|
||||||
|
@ -31,7 +30,7 @@ public class Commandban extends EssentialsCommand
|
||||||
{
|
{
|
||||||
user = getPlayer(server, args, 0, true, true);
|
user = getPlayer(server, args, 0, true, true);
|
||||||
}
|
}
|
||||||
catch (NoSuchFieldException e)
|
catch (PlayerNotFoundException e)
|
||||||
{
|
{
|
||||||
nomatch = true;
|
nomatch = true;
|
||||||
user = ess.getUser(new OfflinePlayer(args[0], ess));
|
user = ess.getUser(new OfflinePlayer(args[0], ess));
|
||||||
|
|
|
@ -149,7 +149,7 @@ public class Commandessentials extends EssentialsCommand
|
||||||
{
|
{
|
||||||
Commandessentials.this.stopTune();
|
Commandessentials.this.stopTune();
|
||||||
}
|
}
|
||||||
if (note.isEmpty() || note == null)
|
if (note == null || note.isEmpty())
|
||||||
{
|
{
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
@ -277,7 +277,7 @@ public class Commandessentials extends EssentialsCommand
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
int ban = user.getBanReason().equals("") ? 0 : 1;
|
int ban = user.getBanReason().isEmpty() ? 0 : 1;
|
||||||
|
|
||||||
long lastLog = user.getLastLogout();
|
long lastLog = user.getLastLogout();
|
||||||
if (lastLog == 0)
|
if (lastLog == 0)
|
||||||
|
|
|
@ -32,7 +32,7 @@ public class Commandignore extends EssentialsCommand
|
||||||
{
|
{
|
||||||
player = getPlayer(server, args, 0, true, true);
|
player = getPlayer(server, args, 0, true, true);
|
||||||
}
|
}
|
||||||
catch (NoSuchFieldException ex)
|
catch (PlayerNotFoundException ex)
|
||||||
{
|
{
|
||||||
player = ess.getOfflineUser(args[0]);
|
player = ess.getOfflineUser(args[0]);
|
||||||
}
|
}
|
||||||
|
|
|
@ -4,7 +4,6 @@ import com.earth2me.essentials.CommandSource;
|
||||||
import static com.earth2me.essentials.I18n._;
|
import static com.earth2me.essentials.I18n._;
|
||||||
import org.bukkit.Material;
|
import org.bukkit.Material;
|
||||||
import org.bukkit.Server;
|
import org.bukkit.Server;
|
||||||
import org.bukkit.entity.Player;
|
|
||||||
import org.bukkit.inventory.ItemStack;
|
import org.bukkit.inventory.ItemStack;
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -22,11 +22,7 @@ public class Commandkickall extends EssentialsCommand
|
||||||
|
|
||||||
for (Player onlinePlayer : server.getOnlinePlayers())
|
for (Player onlinePlayer : server.getOnlinePlayers())
|
||||||
{
|
{
|
||||||
if (sender.isPlayer() && onlinePlayer.getName().equalsIgnoreCase(sender.getPlayer().getName()))
|
if (!sender.isPlayer() && !onlinePlayer.getName().equalsIgnoreCase(sender.getPlayer().getName()))
|
||||||
{
|
|
||||||
continue;
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
{
|
||||||
onlinePlayer.kickPlayer(kickReason);
|
onlinePlayer.kickPlayer(kickReason);
|
||||||
}
|
}
|
||||||
|
|
|
@ -10,7 +10,7 @@ import org.bukkit.entity.Ocelot;
|
||||||
// This command is not documented on the wiki #EasterEgg
|
// This command is not documented on the wiki #EasterEgg
|
||||||
public class Commandkittycannon extends EssentialsCommand
|
public class Commandkittycannon extends EssentialsCommand
|
||||||
{
|
{
|
||||||
private static Random random = new Random();
|
private static final Random random = new Random();
|
||||||
|
|
||||||
public Commandkittycannon()
|
public Commandkittycannon()
|
||||||
{
|
{
|
||||||
|
|
|
@ -5,7 +5,6 @@ import static com.earth2me.essentials.I18n._;
|
||||||
import com.earth2me.essentials.User;
|
import com.earth2me.essentials.User;
|
||||||
import org.bukkit.Server;
|
import org.bukkit.Server;
|
||||||
import org.bukkit.entity.LightningStrike;
|
import org.bukkit.entity.LightningStrike;
|
||||||
import org.bukkit.entity.Player;
|
|
||||||
|
|
||||||
|
|
||||||
public class Commandlightning extends EssentialsLoopCommand
|
public class Commandlightning extends EssentialsLoopCommand
|
||||||
|
@ -20,7 +19,7 @@ public class Commandlightning extends EssentialsLoopCommand
|
||||||
@Override
|
@Override
|
||||||
public void run(final Server server, final CommandSource sender, final String commandLabel, final String[] args) throws Exception
|
public void run(final Server server, final CommandSource sender, final String commandLabel, final String[] args) throws Exception
|
||||||
{
|
{
|
||||||
User user = null;
|
User user;
|
||||||
if (sender.isPlayer())
|
if (sender.isPlayer())
|
||||||
{
|
{
|
||||||
user = ess.getUser(sender.getPlayer());
|
user = ess.getUser(sender.getPlayer());
|
||||||
|
|
|
@ -6,7 +6,6 @@ import com.earth2me.essentials.OfflinePlayer;
|
||||||
import com.earth2me.essentials.User;
|
import com.earth2me.essentials.User;
|
||||||
import com.earth2me.essentials.utils.DateUtil;
|
import com.earth2me.essentials.utils.DateUtil;
|
||||||
import org.bukkit.Server;
|
import org.bukkit.Server;
|
||||||
import org.bukkit.entity.Player;
|
|
||||||
|
|
||||||
|
|
||||||
public class Commandmute extends EssentialsCommand
|
public class Commandmute extends EssentialsCommand
|
||||||
|
@ -29,7 +28,7 @@ public class Commandmute extends EssentialsCommand
|
||||||
{
|
{
|
||||||
user = getPlayer(server, args, 0, true, true);
|
user = getPlayer(server, args, 0, true, true);
|
||||||
}
|
}
|
||||||
catch (NoSuchFieldException e)
|
catch (PlayerNotFoundException e)
|
||||||
{
|
{
|
||||||
nomatch = true;
|
nomatch = true;
|
||||||
user = ess.getUser(new OfflinePlayer(args[0], ess));
|
user = ess.getUser(new OfflinePlayer(args[0], ess));
|
||||||
|
|
|
@ -7,7 +7,6 @@ import com.earth2me.essentials.IReplyTo;
|
||||||
import com.earth2me.essentials.User;
|
import com.earth2me.essentials.User;
|
||||||
import com.earth2me.essentials.utils.FormatUtil;
|
import com.earth2me.essentials.utils.FormatUtil;
|
||||||
import org.bukkit.Server;
|
import org.bukkit.Server;
|
||||||
import org.bukkit.entity.Player;
|
|
||||||
|
|
||||||
|
|
||||||
public class Commandr extends EssentialsCommand
|
public class Commandr extends EssentialsCommand
|
||||||
|
|
|
@ -17,19 +17,6 @@ public class Commandremove extends EssentialsCommand
|
||||||
super("remove");
|
super("remove");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
private enum ToRemove
|
|
||||||
{
|
|
||||||
DROPS,
|
|
||||||
ARROWS,
|
|
||||||
BOATS,
|
|
||||||
MINECARTS,
|
|
||||||
XP,
|
|
||||||
PAINTINGS,
|
|
||||||
ITEMFRAMES,
|
|
||||||
ENDERCRYSTALS
|
|
||||||
}
|
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
protected void run(final Server server, final User user, final String commandLabel, final String[] args) throws Exception
|
protected void run(final Server server, final User user, final String commandLabel, final String[] args) throws Exception
|
||||||
{
|
{
|
||||||
|
@ -105,7 +92,7 @@ public class Commandremove extends EssentialsCommand
|
||||||
removeEntities(sender, world, toRemove, 0);
|
removeEntities(sender, world, toRemove, 0);
|
||||||
}
|
}
|
||||||
|
|
||||||
protected void removeEntities(final CommandSource sender, final World world, final ToRemove toRemove, int radius) throws Exception
|
private void removeEntities(final CommandSource sender, final World world, final ToRemove toRemove, int radius) throws Exception
|
||||||
{
|
{
|
||||||
int removed = 0;
|
int removed = 0;
|
||||||
if (radius > 0)
|
if (radius > 0)
|
||||||
|
@ -191,4 +178,17 @@ public class Commandremove extends EssentialsCommand
|
||||||
}
|
}
|
||||||
sender.sendMessage(_("removed", removed));
|
sender.sendMessage(_("removed", removed));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
private enum ToRemove
|
||||||
|
{
|
||||||
|
DROPS,
|
||||||
|
ARROWS,
|
||||||
|
BOATS,
|
||||||
|
MINECARTS,
|
||||||
|
XP,
|
||||||
|
PAINTINGS,
|
||||||
|
ITEMFRAMES,
|
||||||
|
ENDERCRYSTALS
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -5,6 +5,7 @@ import com.earth2me.essentials.User;
|
||||||
import com.earth2me.essentials.api.IWarps;
|
import com.earth2me.essentials.api.IWarps;
|
||||||
import com.earth2me.essentials.utils.NumberUtil;
|
import com.earth2me.essentials.utils.NumberUtil;
|
||||||
import com.earth2me.essentials.utils.StringUtil;
|
import com.earth2me.essentials.utils.StringUtil;
|
||||||
|
import net.ess3.api.InvalidWorldException;
|
||||||
import org.bukkit.Location;
|
import org.bukkit.Location;
|
||||||
import org.bukkit.Server;
|
import org.bukkit.Server;
|
||||||
|
|
||||||
|
@ -37,7 +38,10 @@ public class Commandsetwarp extends EssentialsCommand
|
||||||
{
|
{
|
||||||
warpLoc = warps.getWarp(args[0]);
|
warpLoc = warps.getWarp(args[0]);
|
||||||
}
|
}
|
||||||
catch (Exception ex)
|
catch (WarpNotFoundException ex)
|
||||||
|
{
|
||||||
|
}
|
||||||
|
catch (InvalidWorldException ex)
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -8,7 +8,6 @@ import java.util.logging.Level;
|
||||||
import java.util.logging.Logger;
|
import java.util.logging.Logger;
|
||||||
import org.bukkit.Server;
|
import org.bukkit.Server;
|
||||||
import org.bukkit.command.PluginCommand;
|
import org.bukkit.command.PluginCommand;
|
||||||
import org.bukkit.entity.Player;
|
|
||||||
|
|
||||||
|
|
||||||
public class Commandsudo extends EssentialsCommand
|
public class Commandsudo extends EssentialsCommand
|
||||||
|
|
|
@ -7,7 +7,6 @@ import com.earth2me.essentials.User;
|
||||||
import com.earth2me.essentials.utils.DateUtil;
|
import com.earth2me.essentials.utils.DateUtil;
|
||||||
import java.util.GregorianCalendar;
|
import java.util.GregorianCalendar;
|
||||||
import org.bukkit.Server;
|
import org.bukkit.Server;
|
||||||
import org.bukkit.entity.Player;
|
|
||||||
|
|
||||||
|
|
||||||
public class Commandtempban extends EssentialsCommand
|
public class Commandtempban extends EssentialsCommand
|
||||||
|
|
|
@ -70,9 +70,9 @@ public final class InventoryWorkaround
|
||||||
// combine items
|
// combine items
|
||||||
|
|
||||||
final ItemStack[] combined = new ItemStack[items.length];
|
final ItemStack[] combined = new ItemStack[items.length];
|
||||||
for (int i = 0; i < items.length; i++)
|
for (ItemStack item : items)
|
||||||
{
|
{
|
||||||
if (items[i] == null || items[i].getAmount() < 1)
|
if (item == null || item.getAmount() < 1)
|
||||||
{
|
{
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
@ -80,12 +80,12 @@ public final class InventoryWorkaround
|
||||||
{
|
{
|
||||||
if (combined[j] == null)
|
if (combined[j] == null)
|
||||||
{
|
{
|
||||||
combined[j] = items[i].clone();
|
combined[j] = item.clone();
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
if (combined[j].isSimilar(items[i]))
|
if (combined[j].isSimilar(item))
|
||||||
{
|
{
|
||||||
combined[j].setAmount(combined[j].getAmount() + items[i].getAmount());
|
combined[j].setAmount(combined[j].getAmount() + item.getAmount());
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -31,9 +31,9 @@ public class Methods
|
||||||
private static boolean self = false;
|
private static boolean self = false;
|
||||||
private static Method Method = null;
|
private static Method Method = null;
|
||||||
private static String preferred = "";
|
private static String preferred = "";
|
||||||
private static Set<Method> Methods = new HashSet<Method>();
|
private static final Set<Method> Methods = new HashSet<Method>();
|
||||||
private static Set<String> Dependencies = new HashSet<String>();
|
private static final Set<String> Dependencies = new HashSet<String>();
|
||||||
private static Set<Method> Attachables = new HashSet<Method>();
|
private static final Set<Method> Attachables = new HashSet<Method>();
|
||||||
|
|
||||||
static
|
static
|
||||||
{
|
{
|
||||||
|
|
|
@ -147,8 +147,8 @@ public class BOSE7 implements Method
|
||||||
|
|
||||||
public class BOSEAccount implements MethodAccount
|
public class BOSEAccount implements MethodAccount
|
||||||
{
|
{
|
||||||
private String name;
|
private final String name;
|
||||||
private BOSEconomy BOSEconomy;
|
private final BOSEconomy BOSEconomy;
|
||||||
|
|
||||||
public BOSEAccount(String name, BOSEconomy bOSEconomy)
|
public BOSEAccount(String name, BOSEconomy bOSEconomy)
|
||||||
{
|
{
|
||||||
|
@ -229,8 +229,8 @@ public class BOSE7 implements Method
|
||||||
|
|
||||||
public class BOSEBankAccount implements MethodBankAccount
|
public class BOSEBankAccount implements MethodBankAccount
|
||||||
{
|
{
|
||||||
private String bank;
|
private final String bank;
|
||||||
private BOSEconomy BOSEconomy;
|
private final BOSEconomy BOSEconomy;
|
||||||
|
|
||||||
public BOSEBankAccount(String bank, BOSEconomy bOSEconomy)
|
public BOSEBankAccount(String bank, BOSEconomy bOSEconomy)
|
||||||
{
|
{
|
||||||
|
|
|
@ -118,7 +118,7 @@ public class MCUR implements Method
|
||||||
|
|
||||||
public class MCurrencyAccount implements MethodAccount
|
public class MCurrencyAccount implements MethodAccount
|
||||||
{
|
{
|
||||||
private String name;
|
private final String name;
|
||||||
|
|
||||||
public MCurrencyAccount(String name)
|
public MCurrencyAccount(String name)
|
||||||
{
|
{
|
||||||
|
|
|
@ -137,8 +137,8 @@ public class iCo5 implements Method
|
||||||
|
|
||||||
public class iCoAccount implements MethodAccount
|
public class iCoAccount implements MethodAccount
|
||||||
{
|
{
|
||||||
private Account account;
|
private final Account account;
|
||||||
private Holdings holdings;
|
private final Holdings holdings;
|
||||||
|
|
||||||
public iCoAccount(Account account)
|
public iCoAccount(Account account)
|
||||||
{
|
{
|
||||||
|
@ -251,8 +251,8 @@ public class iCo5 implements Method
|
||||||
|
|
||||||
public class iCoBankAccount implements MethodBankAccount
|
public class iCoBankAccount implements MethodBankAccount
|
||||||
{
|
{
|
||||||
private BankAccount account;
|
private final BankAccount account;
|
||||||
private Holdings holdings;
|
private final Holdings holdings;
|
||||||
|
|
||||||
public iCoBankAccount(BankAccount account)
|
public iCoBankAccount(BankAccount account)
|
||||||
{
|
{
|
||||||
|
|
|
@ -129,8 +129,8 @@ public class iCo6 implements Method
|
||||||
|
|
||||||
public class iCoAccount implements MethodAccount
|
public class iCoAccount implements MethodAccount
|
||||||
{
|
{
|
||||||
private Account account;
|
private final Account account;
|
||||||
private Holdings holdings;
|
private final Holdings holdings;
|
||||||
|
|
||||||
public iCoAccount(Account account)
|
public iCoAccount(Account account)
|
||||||
{
|
{
|
||||||
|
|
|
@ -17,10 +17,10 @@ import org.bukkit.event.block.*;
|
||||||
|
|
||||||
public class SignBlockListener implements Listener
|
public class SignBlockListener implements Listener
|
||||||
{
|
{
|
||||||
private final transient IEssentials ess;
|
|
||||||
private final static Logger LOGGER = Logger.getLogger("Minecraft");
|
private final static Logger LOGGER = Logger.getLogger("Minecraft");
|
||||||
private final static Material WALL_SIGN = Material.WALL_SIGN;
|
private final static Material WALL_SIGN = Material.WALL_SIGN;
|
||||||
private final static Material SIGN_POST = Material.SIGN_POST;
|
private final static Material SIGN_POST = Material.SIGN_POST;
|
||||||
|
private final transient IEssentials ess;
|
||||||
|
|
||||||
public SignBlockListener(IEssentials ess)
|
public SignBlockListener(IEssentials ess)
|
||||||
{
|
{
|
||||||
|
|
|
@ -62,7 +62,6 @@ public class SignProtection extends EssentialsSign
|
||||||
{
|
{
|
||||||
if (b.getLocation().equals(ignoredBlock.getLocation()))
|
if (b.getLocation().equals(ignoredBlock.getLocation()))
|
||||||
{
|
{
|
||||||
continue;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (protectedBlocks.contains(b.getType()))
|
if (protectedBlocks.contains(b.getType()))
|
||||||
|
@ -118,12 +117,6 @@ public class SignProtection extends EssentialsSign
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
public enum SignProtectionState
|
|
||||||
{
|
|
||||||
NOT_ALLOWED, ALLOWED, NOSIGN, OWNER
|
|
||||||
}
|
|
||||||
|
|
||||||
private SignProtectionState checkProtectionSign(final Block block, final User user, final String username)
|
private SignProtectionState checkProtectionSign(final Block block, final User user, final String username)
|
||||||
{
|
{
|
||||||
if (block.getType() == Material.SIGN_POST || block.getType() == Material.WALL_SIGN)
|
if (block.getType() == Material.SIGN_POST || block.getType() == Material.WALL_SIGN)
|
||||||
|
@ -353,4 +346,9 @@ public class SignProtection extends EssentialsSign
|
||||||
|
|
||||||
return state == SignProtectionState.NOSIGN;
|
return state == SignProtectionState.NOSIGN;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public enum SignProtectionState
|
||||||
|
{
|
||||||
|
NOT_ALLOWED, ALLOWED, NOSIGN, OWNER
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -19,14 +19,6 @@ public class SignTrade extends EssentialsSign
|
||||||
super("Trade");
|
super("Trade");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
public enum AmountType
|
|
||||||
{
|
|
||||||
TOTAL,
|
|
||||||
ROUNDED,
|
|
||||||
COST
|
|
||||||
}
|
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
protected boolean onSignCreate(final ISign sign, final User player, final String username, final IEssentials ess) throws SignException, ChargeException
|
protected boolean onSignCreate(final ISign sign, final User player, final String username, final IEssentials ess) throws SignException, ChargeException
|
||||||
{
|
{
|
||||||
|
@ -52,7 +44,7 @@ public class SignTrade extends EssentialsSign
|
||||||
if (sign.getLine(3).substring(2).equalsIgnoreCase(username))
|
if (sign.getLine(3).substring(2).equalsIgnoreCase(username))
|
||||||
{
|
{
|
||||||
final Trade store = rechargeSign(sign, ess, player);
|
final Trade store = rechargeSign(sign, ess, player);
|
||||||
Trade stored = null;
|
Trade stored;
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
stored = getTrade(sign, 1, AmountType.TOTAL, true, ess);
|
stored = getTrade(sign, 1, AmountType.TOTAL, true, ess);
|
||||||
|
@ -426,4 +418,12 @@ public class SignTrade extends EssentialsSign
|
||||||
}
|
}
|
||||||
throw new SignException(_("invalidSignLine", index + 1));
|
throw new SignException(_("invalidSignLine", index + 1));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
public enum AmountType
|
||||||
|
{
|
||||||
|
TOTAL,
|
||||||
|
ROUNDED,
|
||||||
|
COST
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -24,22 +24,29 @@ public abstract class AsyncStorageObjectHolder<T extends StorageObject> implemen
|
||||||
{
|
{
|
||||||
this.data = clazz.newInstance();
|
this.data = clazz.newInstance();
|
||||||
}
|
}
|
||||||
catch (Exception ex)
|
catch (IllegalAccessException ex)
|
||||||
|
{
|
||||||
|
Bukkit.getLogger().log(Level.SEVERE, ex.getMessage(), ex);
|
||||||
|
}
|
||||||
|
catch (InstantiationException ex)
|
||||||
{
|
{
|
||||||
Bukkit.getLogger().log(Level.SEVERE, ex.getMessage(), ex);
|
Bukkit.getLogger().log(Level.SEVERE, ex.getMessage(), ex);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public T getData()
|
public T getData()
|
||||||
{
|
{
|
||||||
return data;
|
return data;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public void acquireReadLock()
|
public void acquireReadLock()
|
||||||
{
|
{
|
||||||
rwl.readLock().lock();
|
rwl.readLock().lock();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public void acquireWriteLock()
|
public void acquireWriteLock()
|
||||||
{
|
{
|
||||||
while (rwl.getReadHoldCount() > 0)
|
while (rwl.getReadHoldCount() > 0)
|
||||||
|
@ -50,11 +57,13 @@ public abstract class AsyncStorageObjectHolder<T extends StorageObject> implemen
|
||||||
rwl.readLock().lock();
|
rwl.readLock().lock();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public void close()
|
public void close()
|
||||||
{
|
{
|
||||||
unlock();
|
unlock();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public void unlock()
|
public void unlock()
|
||||||
{
|
{
|
||||||
if (rwl.isWriteLockedByCurrentThread())
|
if (rwl.isWriteLockedByCurrentThread())
|
||||||
|
@ -143,7 +152,11 @@ public abstract class AsyncStorageObjectHolder<T extends StorageObject> implemen
|
||||||
{
|
{
|
||||||
data = clazz.newInstance();
|
data = clazz.newInstance();
|
||||||
}
|
}
|
||||||
catch (Exception ex)
|
catch (IllegalAccessException ex)
|
||||||
|
{
|
||||||
|
Bukkit.getLogger().log(Level.SEVERE, ex.getMessage(), ex);
|
||||||
|
}
|
||||||
|
catch (InstantiationException ex)
|
||||||
{
|
{
|
||||||
Bukkit.getLogger().log(Level.SEVERE, ex.getMessage(), ex);
|
Bukkit.getLogger().log(Level.SEVERE, ex.getMessage(), ex);
|
||||||
}
|
}
|
||||||
|
|
|
@ -70,9 +70,9 @@ public class EnchantmentLevel implements Entry<Enchantment, Integer>
|
||||||
if (entry.getKey() instanceof Enchantment
|
if (entry.getKey() instanceof Enchantment
|
||||||
&& entry.getValue() instanceof Integer)
|
&& entry.getValue() instanceof Integer)
|
||||||
{
|
{
|
||||||
final Enchantment enchantment = (Enchantment)entry.getKey();
|
final Enchantment enchant = (Enchantment)entry.getKey();
|
||||||
final Integer level = (Integer)entry.getValue();
|
final Integer lvl = (Integer)entry.getValue();
|
||||||
return this.enchantment.equals(enchantment) && this.level == level.intValue();
|
return this.enchantment.equals(enchant) && this.level == lvl.intValue();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return false;
|
return false;
|
||||||
|
|
|
@ -50,7 +50,11 @@ public class YamlStorageReader implements IStorageReader
|
||||||
}
|
}
|
||||||
return object;
|
return object;
|
||||||
}
|
}
|
||||||
catch (Exception ex)
|
catch (IllegalAccessException ex)
|
||||||
|
{
|
||||||
|
throw new ObjectLoadException(ex);
|
||||||
|
}
|
||||||
|
catch (InstantiationException ex)
|
||||||
{
|
{
|
||||||
throw new ObjectLoadException(ex);
|
throw new ObjectLoadException(ex);
|
||||||
}
|
}
|
||||||
|
|
|
@ -22,8 +22,8 @@ import org.yaml.snakeyaml.Yaml;
|
||||||
public class YamlStorageWriter implements IStorageWriter
|
public class YamlStorageWriter implements IStorageWriter
|
||||||
{
|
{
|
||||||
private transient static final Pattern NON_WORD_PATTERN = Pattern.compile("\\W");
|
private transient static final Pattern NON_WORD_PATTERN = Pattern.compile("\\W");
|
||||||
private transient final PrintWriter writer;
|
|
||||||
private transient static final Yaml YAML = new Yaml();
|
private transient static final Yaml YAML = new Yaml();
|
||||||
|
private transient final PrintWriter writer;
|
||||||
|
|
||||||
public YamlStorageWriter(final PrintWriter writer)
|
public YamlStorageWriter(final PrintWriter writer)
|
||||||
{
|
{
|
||||||
|
|
|
@ -8,11 +8,11 @@ import net.ess3.api.IEssentials;
|
||||||
|
|
||||||
public class BookInput implements IText
|
public class BookInput implements IText
|
||||||
{
|
{
|
||||||
|
private final static HashMap<String, SoftReference<BookInput>> cache = new HashMap<String, SoftReference<BookInput>>();
|
||||||
private final transient List<String> lines;
|
private final transient List<String> lines;
|
||||||
private final transient List<String> chapters;
|
private final transient List<String> chapters;
|
||||||
private final transient Map<String, Integer> bookmarks;
|
private final transient Map<String, Integer> bookmarks;
|
||||||
private final transient long lastChange;
|
private final transient long lastChange;
|
||||||
private final static HashMap<String, SoftReference<BookInput>> cache = new HashMap<String, SoftReference<BookInput>>();
|
|
||||||
|
|
||||||
public BookInput(final String filename, final boolean createFile, final IEssentials ess) throws IOException
|
public BookInput(final String filename, final boolean createFile, final IEssentials ess) throws IOException
|
||||||
{
|
{
|
||||||
|
|
|
@ -16,10 +16,10 @@ public class HelpInput implements IText
|
||||||
private static final String DESCRIPTION = "description";
|
private static final String DESCRIPTION = "description";
|
||||||
private static final String PERMISSION = "permission";
|
private static final String PERMISSION = "permission";
|
||||||
private static final String PERMISSIONS = "permissions";
|
private static final String PERMISSIONS = "permissions";
|
||||||
|
private final static Logger logger = Logger.getLogger("Minecraft");
|
||||||
private final transient List<String> lines = new ArrayList<String>();
|
private final transient List<String> lines = new ArrayList<String>();
|
||||||
private final transient List<String> chapters = new ArrayList<String>();
|
private final transient List<String> chapters = new ArrayList<String>();
|
||||||
private final transient Map<String, Integer> bookmarks = new HashMap<String, Integer>();
|
private final transient Map<String, Integer> bookmarks = new HashMap<String, Integer>();
|
||||||
private final static Logger logger = Logger.getLogger("Minecraft");
|
|
||||||
|
|
||||||
public HelpInput(final User user, final String match, final IEssentials ess) throws IOException
|
public HelpInput(final User user, final String match, final IEssentials ess) throws IOException
|
||||||
{
|
{
|
||||||
|
@ -121,7 +121,6 @@ public class HelpInput implements IText
|
||||||
}
|
}
|
||||||
catch (NullPointerException ex)
|
catch (NullPointerException ex)
|
||||||
{
|
{
|
||||||
continue;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (!pluginLines.isEmpty())
|
if (!pluginLines.isEmpty())
|
||||||
|
@ -139,7 +138,6 @@ public class HelpInput implements IText
|
||||||
}
|
}
|
||||||
catch (NullPointerException ex)
|
catch (NullPointerException ex)
|
||||||
{
|
{
|
||||||
continue;
|
|
||||||
}
|
}
|
||||||
catch (Exception ex)
|
catch (Exception ex)
|
||||||
{
|
{
|
||||||
|
@ -148,7 +146,6 @@ public class HelpInput implements IText
|
||||||
logger.log(Level.WARNING, _("commandHelpFailedForPlugin", pluginNameLow), ex);
|
logger.log(Level.WARNING, _("commandHelpFailedForPlugin", pluginNameLow), ex);
|
||||||
}
|
}
|
||||||
reported = true;
|
reported = true;
|
||||||
continue;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
lines.addAll(newLines);
|
lines.addAll(newLines);
|
||||||
|
|
|
@ -31,13 +31,13 @@ import org.bukkit.plugin.Plugin;
|
||||||
|
|
||||||
public class KeywordReplacer implements IText
|
public class KeywordReplacer implements IText
|
||||||
{
|
{
|
||||||
|
private final static Pattern KEYWORD = Pattern.compile("\\{([^\\{\\}]+)\\}");
|
||||||
|
private final static Pattern KEYWORDSPLIT = Pattern.compile("\\:");
|
||||||
private final transient IText input;
|
private final transient IText input;
|
||||||
private final transient List<String> replaced;
|
private final transient List<String> replaced;
|
||||||
private final transient IEssentials ess;
|
private final transient IEssentials ess;
|
||||||
private final transient boolean includePrivate;
|
private final transient boolean includePrivate;
|
||||||
private transient ExecuteTimer execTimer;
|
private transient ExecuteTimer execTimer;
|
||||||
private final static Pattern KEYWORD = Pattern.compile("\\{([^\\{\\}]+)\\}");
|
|
||||||
private final static Pattern KEYWORDSPLIT = Pattern.compile("\\:");
|
|
||||||
private final EnumMap<KeywordType, Object> keywordCache = new EnumMap<KeywordType, Object>(KeywordType.class);
|
private final EnumMap<KeywordType, Object> keywordCache = new EnumMap<KeywordType, Object>(KeywordType.class);
|
||||||
|
|
||||||
public KeywordReplacer(final IText input, final CommandSource sender, final IEssentials ess)
|
public KeywordReplacer(final IText input, final CommandSource sender, final IEssentials ess)
|
||||||
|
|
|
@ -12,11 +12,11 @@ import net.ess3.api.IEssentials;
|
||||||
|
|
||||||
public class TextInput implements IText
|
public class TextInput implements IText
|
||||||
{
|
{
|
||||||
|
private final static HashMap<String, SoftReference<TextInput>> cache = new HashMap<String, SoftReference<TextInput>>();
|
||||||
private final transient List<String> lines;
|
private final transient List<String> lines;
|
||||||
private final transient List<String> chapters;
|
private final transient List<String> chapters;
|
||||||
private final transient Map<String, Integer> bookmarks;
|
private final transient Map<String, Integer> bookmarks;
|
||||||
private final transient long lastChange;
|
private final transient long lastChange;
|
||||||
private final static HashMap<String, SoftReference<TextInput>> cache = new HashMap<String, SoftReference<TextInput>>();
|
|
||||||
|
|
||||||
public TextInput(final CommandSource sender, final String filename, final boolean createFile, final IEssentials ess) throws IOException
|
public TextInput(final CommandSource sender, final String filename, final boolean createFile, final IEssentials ess) throws IOException
|
||||||
{
|
{
|
||||||
|
|
|
@ -64,7 +64,7 @@ public class TextPager
|
||||||
{
|
{
|
||||||
page = Integer.parseInt(pageStr);
|
page = Integer.parseInt(pageStr);
|
||||||
}
|
}
|
||||||
catch (Exception ex)
|
catch (NumberFormatException ex)
|
||||||
{
|
{
|
||||||
page = 1;
|
page = 1;
|
||||||
}
|
}
|
||||||
|
@ -121,7 +121,7 @@ public class TextPager
|
||||||
{
|
{
|
||||||
chapterpage = Integer.parseInt(chapterPageStr) - 1;
|
chapterpage = Integer.parseInt(chapterPageStr) - 1;
|
||||||
}
|
}
|
||||||
catch (Exception ex)
|
catch (NumberFormatException ex)
|
||||||
{
|
{
|
||||||
chapterpage = 0;
|
chapterpage = 0;
|
||||||
}
|
}
|
||||||
|
|
|
@ -61,13 +61,7 @@ public final class DescParseTickFormat
|
||||||
resetAliases.add("default");
|
resetAliases.add("default");
|
||||||
}
|
}
|
||||||
|
|
||||||
private DescParseTickFormat()
|
|
||||||
{
|
|
||||||
}
|
|
||||||
|
|
||||||
// ============================================
|
// ============================================
|
||||||
// PARSE. From describing String to int
|
|
||||||
// --------------------------------------------
|
|
||||||
public static long parse(String desc) throws NumberFormatException
|
public static long parse(String desc) throws NumberFormatException
|
||||||
{
|
{
|
||||||
// Only look at alphanumeric and lowercase and : for 24:00
|
// Only look at alphanumeric and lowercase and : for 24:00
|
||||||
|
@ -78,7 +72,7 @@ public final class DescParseTickFormat
|
||||||
{
|
{
|
||||||
return parseTicks(desc);
|
return parseTicks(desc);
|
||||||
}
|
}
|
||||||
catch (Exception e)
|
catch (NumberFormatException e)
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -87,7 +81,7 @@ public final class DescParseTickFormat
|
||||||
{
|
{
|
||||||
return parse24(desc);
|
return parse24(desc);
|
||||||
}
|
}
|
||||||
catch (Exception e)
|
catch (NumberFormatException e)
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -96,7 +90,7 @@ public final class DescParseTickFormat
|
||||||
{
|
{
|
||||||
return parse12(desc);
|
return parse12(desc);
|
||||||
}
|
}
|
||||||
catch (Exception e)
|
catch (NumberFormatException e)
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -105,14 +99,13 @@ public final class DescParseTickFormat
|
||||||
{
|
{
|
||||||
return parseAlias(desc);
|
return parseAlias(desc);
|
||||||
}
|
}
|
||||||
catch (Exception e)
|
catch (NumberFormatException e)
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
// Well we failed to understand...
|
// Well we failed to understand...
|
||||||
throw new NumberFormatException();
|
throw new NumberFormatException();
|
||||||
}
|
}
|
||||||
|
|
||||||
public static long parseTicks(String desc) throws NumberFormatException
|
public static long parseTicks(String desc) throws NumberFormatException
|
||||||
{
|
{
|
||||||
if (!desc.matches("^[0-9]+ti?c?k?s?$"))
|
if (!desc.matches("^[0-9]+ti?c?k?s?$"))
|
||||||
|
@ -227,13 +220,10 @@ public final class DescParseTickFormat
|
||||||
}
|
}
|
||||||
|
|
||||||
// ============================================
|
// ============================================
|
||||||
// FORMAT. From int to describing String
|
|
||||||
// --------------------------------------------
|
|
||||||
public static String format(final long ticks)
|
public static String format(final long ticks)
|
||||||
{
|
{
|
||||||
return _("timeFormat", format24(ticks), format12(ticks), formatTicks(ticks));
|
return _("timeFormat", format24(ticks), format12(ticks), formatTicks(ticks));
|
||||||
}
|
}
|
||||||
|
|
||||||
public static String formatTicks(final long ticks)
|
public static String formatTicks(final long ticks)
|
||||||
{
|
{
|
||||||
return (ticks % ticksPerDay) + "ticks";
|
return (ticks % ticksPerDay) + "ticks";
|
||||||
|
@ -295,4 +285,8 @@ public final class DescParseTickFormat
|
||||||
|
|
||||||
return cal.getTime();
|
return cal.getTime();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
private DescParseTickFormat()
|
||||||
|
{
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -123,7 +123,7 @@ public class FormatUtil
|
||||||
|
|
||||||
public static String lastCode(final String input)
|
public static String lastCode(final String input)
|
||||||
{
|
{
|
||||||
int pos = input.lastIndexOf("\u00a7");
|
int pos = input.lastIndexOf('\u00a7');
|
||||||
if (pos == -1 || (pos + 1) == input.length())
|
if (pos == -1 || (pos + 1) == input.length())
|
||||||
{
|
{
|
||||||
return "";
|
return "";
|
||||||
|
|
|
@ -157,15 +157,15 @@ public class LocationUtil
|
||||||
|
|
||||||
public static class Vector3D
|
public static class Vector3D
|
||||||
{
|
{
|
||||||
|
public int x;
|
||||||
|
public int y;
|
||||||
|
public int z;
|
||||||
public Vector3D(int x, int y, int z)
|
public Vector3D(int x, int y, int z)
|
||||||
{
|
{
|
||||||
this.x = x;
|
this.x = x;
|
||||||
this.y = y;
|
this.y = y;
|
||||||
this.z = z;
|
this.z = z;
|
||||||
}
|
}
|
||||||
public int x;
|
|
||||||
public int y;
|
|
||||||
public int z;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
static
|
static
|
||||||
|
|
|
@ -6,9 +6,6 @@ import java.util.regex.Pattern;
|
||||||
|
|
||||||
public class StringUtil
|
public class StringUtil
|
||||||
{
|
{
|
||||||
private StringUtil()
|
|
||||||
{
|
|
||||||
}
|
|
||||||
private final static Pattern INVALIDFILECHARS = Pattern.compile("[^a-z0-9]");
|
private final static Pattern INVALIDFILECHARS = Pattern.compile("[^a-z0-9]");
|
||||||
private final static Pattern INVALIDCHARS = Pattern.compile("[^\t\n\r\u0020-\u007E\u0085\u00A0-\uD7FF\uE000-\uFFFC]");
|
private final static Pattern INVALIDCHARS = Pattern.compile("[^\t\n\r\u0020-\u007E\u0085\u00A0-\uD7FF\uE000-\uFFFC]");
|
||||||
|
|
||||||
|
@ -63,4 +60,7 @@ public class StringUtil
|
||||||
}
|
}
|
||||||
return buf.toString();
|
return buf.toString();
|
||||||
}
|
}
|
||||||
|
private StringUtil()
|
||||||
|
{
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -79,6 +79,7 @@ is divided into following sections:
|
||||||
<property file="nbproject/project.properties"/>
|
<property file="nbproject/project.properties"/>
|
||||||
</target>
|
</target>
|
||||||
<target depends="-pre-init,-init-private,-init-libraries,-init-user,-init-project,-init-macrodef-property" name="-do-init">
|
<target depends="-pre-init,-init-private,-init-libraries,-init-user,-init-project,-init-macrodef-property" name="-do-init">
|
||||||
|
<property name="platform.java" value="${java.home}/bin/java"/>
|
||||||
<available file="${manifest.file}" property="manifest.available"/>
|
<available file="${manifest.file}" property="manifest.available"/>
|
||||||
<condition property="splashscreen.available">
|
<condition property="splashscreen.available">
|
||||||
<and>
|
<and>
|
||||||
|
@ -96,10 +97,11 @@ is divided into following sections:
|
||||||
</not>
|
</not>
|
||||||
</and>
|
</and>
|
||||||
</condition>
|
</condition>
|
||||||
<condition property="manifest.available+main.class">
|
<condition property="profile.available">
|
||||||
<and>
|
<and>
|
||||||
<isset property="manifest.available"/>
|
<isset property="javac.profile"/>
|
||||||
<isset property="main.class.available"/>
|
<length length="0" string="${javac.profile}" when="greater"/>
|
||||||
|
<matches pattern="1\.[89](\..*)?" string="${javac.source}"/>
|
||||||
</and>
|
</and>
|
||||||
</condition>
|
</condition>
|
||||||
<condition property="do.archive">
|
<condition property="do.archive">
|
||||||
|
@ -116,12 +118,6 @@ is divided into following sections:
|
||||||
</not>
|
</not>
|
||||||
</and>
|
</and>
|
||||||
</condition>
|
</condition>
|
||||||
<condition property="manifest.available+main.class+mkdist.available">
|
|
||||||
<and>
|
|
||||||
<istrue value="${manifest.available+main.class}"/>
|
|
||||||
<isset property="do.mkdist"/>
|
|
||||||
</and>
|
|
||||||
</condition>
|
|
||||||
<condition property="do.archive+manifest.available">
|
<condition property="do.archive+manifest.available">
|
||||||
<and>
|
<and>
|
||||||
<isset property="manifest.available"/>
|
<isset property="manifest.available"/>
|
||||||
|
@ -140,24 +136,12 @@ is divided into following sections:
|
||||||
<istrue value="${do.archive}"/>
|
<istrue value="${do.archive}"/>
|
||||||
</and>
|
</and>
|
||||||
</condition>
|
</condition>
|
||||||
<condition property="do.archive+manifest.available+main.class">
|
<condition property="do.archive+profile.available">
|
||||||
<and>
|
<and>
|
||||||
<istrue value="${manifest.available+main.class}"/>
|
<isset property="profile.available"/>
|
||||||
<istrue value="${do.archive}"/>
|
<istrue value="${do.archive}"/>
|
||||||
</and>
|
</and>
|
||||||
</condition>
|
</condition>
|
||||||
<condition property="manifest.available-mkdist.available">
|
|
||||||
<or>
|
|
||||||
<istrue value="${manifest.available}"/>
|
|
||||||
<isset property="do.mkdist"/>
|
|
||||||
</or>
|
|
||||||
</condition>
|
|
||||||
<condition property="manifest.available+main.class-mkdist.available">
|
|
||||||
<or>
|
|
||||||
<istrue value="${manifest.available+main.class}"/>
|
|
||||||
<isset property="do.mkdist"/>
|
|
||||||
</or>
|
|
||||||
</condition>
|
|
||||||
<condition property="have.tests">
|
<condition property="have.tests">
|
||||||
<or>
|
<or>
|
||||||
<available file="${test.src.dir}"/>
|
<available file="${test.src.dir}"/>
|
||||||
|
@ -211,7 +195,15 @@ is divided into following sections:
|
||||||
</condition>
|
</condition>
|
||||||
<path id="endorsed.classpath.path" path="${endorsed.classpath}"/>
|
<path id="endorsed.classpath.path" path="${endorsed.classpath}"/>
|
||||||
<condition else="" property="endorsed.classpath.cmd.line.arg" value="-Xbootclasspath/p:'${toString:endorsed.classpath.path}'">
|
<condition else="" property="endorsed.classpath.cmd.line.arg" value="-Xbootclasspath/p:'${toString:endorsed.classpath.path}'">
|
||||||
<length length="0" string="${endorsed.classpath}" when="greater"/>
|
<and>
|
||||||
|
<isset property="endorsed.classpath"/>
|
||||||
|
<not>
|
||||||
|
<equals arg1="${endorsed.classpath}" arg2="" trim="true"/>
|
||||||
|
</not>
|
||||||
|
</and>
|
||||||
|
</condition>
|
||||||
|
<condition else="" property="javac.profile.cmd.line.arg" value="-profile ${javac.profile}">
|
||||||
|
<isset property="profile.available"/>
|
||||||
</condition>
|
</condition>
|
||||||
<condition else="false" property="jdkBug6558476">
|
<condition else="false" property="jdkBug6558476">
|
||||||
<and>
|
<and>
|
||||||
|
@ -300,6 +292,7 @@ is divided into following sections:
|
||||||
<path path="@{classpath}"/>
|
<path path="@{classpath}"/>
|
||||||
</classpath>
|
</classpath>
|
||||||
<compilerarg line="${endorsed.classpath.cmd.line.arg}"/>
|
<compilerarg line="${endorsed.classpath.cmd.line.arg}"/>
|
||||||
|
<compilerarg line="${javac.profile.cmd.line.arg}"/>
|
||||||
<compilerarg line="${javac.compilerargs}"/>
|
<compilerarg line="${javac.compilerargs}"/>
|
||||||
<compilerarg value="-processorpath"/>
|
<compilerarg value="-processorpath"/>
|
||||||
<compilerarg path="@{processorpath}:${empty.dir}"/>
|
<compilerarg path="@{processorpath}:${empty.dir}"/>
|
||||||
|
@ -339,6 +332,7 @@ is divided into following sections:
|
||||||
<path path="@{classpath}"/>
|
<path path="@{classpath}"/>
|
||||||
</classpath>
|
</classpath>
|
||||||
<compilerarg line="${endorsed.classpath.cmd.line.arg}"/>
|
<compilerarg line="${endorsed.classpath.cmd.line.arg}"/>
|
||||||
|
<compilerarg line="${javac.profile.cmd.line.arg}"/>
|
||||||
<compilerarg line="${javac.compilerargs}"/>
|
<compilerarg line="${javac.compilerargs}"/>
|
||||||
<customize/>
|
<customize/>
|
||||||
</javac>
|
</javac>
|
||||||
|
@ -471,7 +465,7 @@ is divided into following sections:
|
||||||
</fileset>
|
</fileset>
|
||||||
</union>
|
</union>
|
||||||
<taskdef classname="org.testng.TestNGAntTask" classpath="${run.test.classpath}" name="testng"/>
|
<taskdef classname="org.testng.TestNGAntTask" classpath="${run.test.classpath}" name="testng"/>
|
||||||
<testng classfilesetref="test.set" failureProperty="tests.failed" methods="${testng.methods.arg}" mode="${testng.mode}" outputdir="${build.test.results.dir}" suitename="EssentialsAntiBuild" testname="TestNG tests" workingDir="${work.dir}">
|
<testng classfilesetref="test.set" failureProperty="tests.failed" listeners="org.testng.reporters.VerboseReporter" methods="${testng.methods.arg}" mode="${testng.mode}" outputdir="${build.test.results.dir}" suitename="EssentialsAntiBuild" testname="TestNG tests" workingDir="${work.dir}">
|
||||||
<xmlfileset dir="${build.test.classes.dir}" includes="@{testincludes}"/>
|
<xmlfileset dir="${build.test.classes.dir}" includes="@{testincludes}"/>
|
||||||
<propertyset>
|
<propertyset>
|
||||||
<propertyref prefix="test-sys-prop."/>
|
<propertyref prefix="test-sys-prop."/>
|
||||||
|
@ -862,8 +856,8 @@ is divided into following sections:
|
||||||
</chainedmapper>
|
</chainedmapper>
|
||||||
</pathconvert>
|
</pathconvert>
|
||||||
<taskdef classname="org.netbeans.modules.java.j2seproject.copylibstask.CopyLibs" classpath="${libs.CopyLibs.classpath}" name="copylibs"/>
|
<taskdef classname="org.netbeans.modules.java.j2seproject.copylibstask.CopyLibs" classpath="${libs.CopyLibs.classpath}" name="copylibs"/>
|
||||||
<copylibs compress="${jar.compress}" index="${jar.index}" indexMetaInf="${jar.index.metainf}" jarfile="${dist.jar}" manifest="@{manifest}" rebase="${copylibs.rebase}" runtimeclasspath="${run.classpath.without.build.classes.dir}">
|
<copylibs compress="${jar.compress}" excludeFromCopy="${copylibs.excludes}" index="${jar.index}" indexMetaInf="${jar.index.metainf}" jarfile="${dist.jar}" manifest="@{manifest}" rebase="${copylibs.rebase}" runtimeclasspath="${run.classpath.without.build.classes.dir}">
|
||||||
<fileset dir="${build.classes.dir}"/>
|
<fileset dir="${build.classes.dir}" excludes="${dist.archive.excludes}"/>
|
||||||
<manifest>
|
<manifest>
|
||||||
<attribute name="Class-Path" value="${jar.classpath}"/>
|
<attribute name="Class-Path" value="${jar.classpath}"/>
|
||||||
<customize/>
|
<customize/>
|
||||||
|
@ -875,7 +869,7 @@ is divided into following sections:
|
||||||
<target name="-init-presetdef-jar">
|
<target name="-init-presetdef-jar">
|
||||||
<presetdef name="jar" uri="http://www.netbeans.org/ns/j2se-project/1">
|
<presetdef name="jar" uri="http://www.netbeans.org/ns/j2se-project/1">
|
||||||
<jar compress="${jar.compress}" index="${jar.index}" jarfile="${dist.jar}">
|
<jar compress="${jar.compress}" index="${jar.index}" jarfile="${dist.jar}">
|
||||||
<j2seproject1:fileset dir="${build.classes.dir}"/>
|
<j2seproject1:fileset dir="${build.classes.dir}" excludes="${dist.archive.excludes}"/>
|
||||||
</jar>
|
</jar>
|
||||||
</presetdef>
|
</presetdef>
|
||||||
</target>
|
</target>
|
||||||
|
@ -998,41 +992,25 @@ is divided into following sections:
|
||||||
<!-- Empty placeholder for easier customization. -->
|
<!-- Empty placeholder for easier customization. -->
|
||||||
<!-- You can override this target in the ../build.xml file. -->
|
<!-- You can override this target in the ../build.xml file. -->
|
||||||
</target>
|
</target>
|
||||||
<target depends="init,compile,-pre-pre-jar,-pre-jar" if="do.archive" name="-do-jar-without-manifest" unless="manifest.available-mkdist.available">
|
<target depends="init" if="do.archive" name="-do-jar-create-manifest" unless="manifest.available">
|
||||||
<j2seproject1:jar/>
|
|
||||||
</target>
|
|
||||||
<target depends="init,compile,-pre-pre-jar,-pre-jar" if="do.archive+manifest.available" name="-do-jar-with-manifest" unless="manifest.available+main.class-mkdist.available">
|
|
||||||
<j2seproject1:jar manifest="${manifest.file}"/>
|
|
||||||
</target>
|
|
||||||
<target depends="init,compile,-pre-pre-jar,-pre-jar" if="do.archive+manifest.available+main.class" name="-do-jar-with-mainclass" unless="manifest.available+main.class+mkdist.available">
|
|
||||||
<j2seproject1:jar manifest="${manifest.file}">
|
|
||||||
<j2seproject1:manifest>
|
|
||||||
<j2seproject1:attribute name="Main-Class" value="${main.class}"/>
|
|
||||||
</j2seproject1:manifest>
|
|
||||||
</j2seproject1:jar>
|
|
||||||
<echo level="info">To run this application from the command line without Ant, try:</echo>
|
|
||||||
<property location="${build.classes.dir}" name="build.classes.dir.resolved"/>
|
|
||||||
<property location="${dist.jar}" name="dist.jar.resolved"/>
|
|
||||||
<pathconvert property="run.classpath.with.dist.jar">
|
|
||||||
<path path="${run.classpath}"/>
|
|
||||||
<map from="${build.classes.dir.resolved}" to="${dist.jar.resolved}"/>
|
|
||||||
</pathconvert>
|
|
||||||
<echo level="info">java -cp "${run.classpath.with.dist.jar}" ${main.class}</echo>
|
|
||||||
</target>
|
|
||||||
<target depends="init" if="do.archive" name="-do-jar-with-libraries-create-manifest" unless="manifest.available">
|
|
||||||
<tempfile deleteonexit="true" destdir="${build.dir}" property="tmp.manifest.file"/>
|
<tempfile deleteonexit="true" destdir="${build.dir}" property="tmp.manifest.file"/>
|
||||||
<touch file="${tmp.manifest.file}" verbose="false"/>
|
<touch file="${tmp.manifest.file}" verbose="false"/>
|
||||||
</target>
|
</target>
|
||||||
<target depends="init" if="do.archive+manifest.available" name="-do-jar-with-libraries-copy-manifest">
|
<target depends="init" if="do.archive+manifest.available" name="-do-jar-copy-manifest">
|
||||||
<tempfile deleteonexit="true" destdir="${build.dir}" property="tmp.manifest.file"/>
|
<tempfile deleteonexit="true" destdir="${build.dir}" property="tmp.manifest.file"/>
|
||||||
<copy file="${manifest.file}" tofile="${tmp.manifest.file}"/>
|
<copy file="${manifest.file}" tofile="${tmp.manifest.file}"/>
|
||||||
</target>
|
</target>
|
||||||
<target depends="init,-do-jar-with-libraries-create-manifest,-do-jar-with-libraries-copy-manifest" if="do.archive+main.class.available" name="-do-jar-with-libraries-set-main">
|
<target depends="init,-do-jar-create-manifest,-do-jar-copy-manifest" if="do.archive+main.class.available" name="-do-jar-set-mainclass">
|
||||||
<manifest file="${tmp.manifest.file}" mode="update">
|
<manifest file="${tmp.manifest.file}" mode="update">
|
||||||
<attribute name="Main-Class" value="${main.class}"/>
|
<attribute name="Main-Class" value="${main.class}"/>
|
||||||
</manifest>
|
</manifest>
|
||||||
</target>
|
</target>
|
||||||
<target depends="init,-do-jar-with-libraries-create-manifest,-do-jar-with-libraries-copy-manifest" if="do.archive+splashscreen.available" name="-do-jar-with-libraries-set-splashscreen">
|
<target depends="init,-do-jar-create-manifest,-do-jar-copy-manifest" if="do.archive+profile.available" name="-do-jar-set-profile">
|
||||||
|
<manifest file="${tmp.manifest.file}" mode="update">
|
||||||
|
<attribute name="Profile" value="${javac.profile}"/>
|
||||||
|
</manifest>
|
||||||
|
</target>
|
||||||
|
<target depends="init,-do-jar-create-manifest,-do-jar-copy-manifest" if="do.archive+splashscreen.available" name="-do-jar-set-splashscreen">
|
||||||
<basename file="${application.splash}" property="splashscreen.basename"/>
|
<basename file="${application.splash}" property="splashscreen.basename"/>
|
||||||
<mkdir dir="${build.classes.dir}/META-INF"/>
|
<mkdir dir="${build.classes.dir}/META-INF"/>
|
||||||
<copy failonerror="false" file="${application.splash}" todir="${build.classes.dir}/META-INF"/>
|
<copy failonerror="false" file="${application.splash}" todir="${build.classes.dir}/META-INF"/>
|
||||||
|
@ -1040,23 +1018,41 @@ is divided into following sections:
|
||||||
<attribute name="SplashScreen-Image" value="META-INF/${splashscreen.basename}"/>
|
<attribute name="SplashScreen-Image" value="META-INF/${splashscreen.basename}"/>
|
||||||
</manifest>
|
</manifest>
|
||||||
</target>
|
</target>
|
||||||
<target depends="init,-init-macrodef-copylibs,compile,-pre-pre-jar,-pre-jar,-do-jar-with-libraries-create-manifest,-do-jar-with-libraries-copy-manifest,-do-jar-with-libraries-set-main,-do-jar-with-libraries-set-splashscreen" if="do.mkdist" name="-do-jar-with-libraries-pack">
|
<target depends="init,-init-macrodef-copylibs,compile,-pre-pre-jar,-pre-jar,-do-jar-create-manifest,-do-jar-copy-manifest,-do-jar-set-mainclass,-do-jar-set-profile,-do-jar-set-splashscreen" if="do.mkdist" name="-do-jar-copylibs">
|
||||||
<j2seproject3:copylibs manifest="${tmp.manifest.file}"/>
|
<j2seproject3:copylibs manifest="${tmp.manifest.file}"/>
|
||||||
<echo level="info">To run this application from the command line without Ant, try:</echo>
|
<echo level="info">To run this application from the command line without Ant, try:</echo>
|
||||||
<property location="${dist.jar}" name="dist.jar.resolved"/>
|
<property location="${dist.jar}" name="dist.jar.resolved"/>
|
||||||
<echo level="info">java -jar "${dist.jar.resolved}"</echo>
|
<echo level="info">java -jar "${dist.jar.resolved}"</echo>
|
||||||
</target>
|
</target>
|
||||||
<target depends="-do-jar-with-libraries-pack" if="do.archive" name="-do-jar-with-libraries-delete-manifest">
|
<target depends="init,compile,-pre-pre-jar,-pre-jar,-do-jar-create-manifest,-do-jar-copy-manifest,-do-jar-set-mainclass,-do-jar-set-profile,-do-jar-set-splashscreen" if="do.archive" name="-do-jar-jar" unless="do.mkdist">
|
||||||
|
<j2seproject1:jar manifest="${tmp.manifest.file}"/>
|
||||||
|
<property location="${build.classes.dir}" name="build.classes.dir.resolved"/>
|
||||||
|
<property location="${dist.jar}" name="dist.jar.resolved"/>
|
||||||
|
<pathconvert property="run.classpath.with.dist.jar">
|
||||||
|
<path path="${run.classpath}"/>
|
||||||
|
<map from="${build.classes.dir.resolved}" to="${dist.jar.resolved}"/>
|
||||||
|
</pathconvert>
|
||||||
|
<condition else="" property="jar.usage.message" value="To run this application from the command line without Ant, try:${line.separator}${platform.java} -cp ${run.classpath.with.dist.jar} ${main.class}">
|
||||||
|
<isset property="main.class.available"/>
|
||||||
|
</condition>
|
||||||
|
<condition else="debug" property="jar.usage.level" value="info">
|
||||||
|
<isset property="main.class.available"/>
|
||||||
|
</condition>
|
||||||
|
<echo level="${jar.usage.level}" message="${jar.usage.message}"/>
|
||||||
|
</target>
|
||||||
|
<target depends="-do-jar-copylibs" if="do.archive" name="-do-jar-delete-manifest">
|
||||||
<delete>
|
<delete>
|
||||||
<fileset file="${tmp.manifest.file}"/>
|
<fileset file="${tmp.manifest.file}"/>
|
||||||
</delete>
|
</delete>
|
||||||
</target>
|
</target>
|
||||||
<target depends="init,compile,-pre-pre-jar,-pre-jar,-do-jar-with-libraries-create-manifest,-do-jar-with-libraries-copy-manifest,-do-jar-with-libraries-set-main,-do-jar-with-libraries-set-splashscreen,-do-jar-with-libraries-pack,-do-jar-with-libraries-delete-manifest" name="-do-jar-with-libraries"/>
|
<target depends="init,compile,-pre-pre-jar,-pre-jar,-do-jar-create-manifest,-do-jar-copy-manifest,-do-jar-set-mainclass,-do-jar-set-profile,-do-jar-set-splashscreen,-do-jar-jar,-do-jar-delete-manifest" name="-do-jar-without-libraries"/>
|
||||||
|
<target depends="init,compile,-pre-pre-jar,-pre-jar,-do-jar-create-manifest,-do-jar-copy-manifest,-do-jar-set-mainclass,-do-jar-set-profile,-do-jar-set-splashscreen,-do-jar-copylibs,-do-jar-delete-manifest" name="-do-jar-with-libraries"/>
|
||||||
<target name="-post-jar">
|
<target name="-post-jar">
|
||||||
<!-- Empty placeholder for easier customization. -->
|
<!-- Empty placeholder for easier customization. -->
|
||||||
<!-- You can override this target in the ../build.xml file. -->
|
<!-- You can override this target in the ../build.xml file. -->
|
||||||
</target>
|
</target>
|
||||||
<target depends="init,compile,-pre-jar,-do-jar-with-manifest,-do-jar-without-manifest,-do-jar-with-mainclass,-do-jar-with-libraries,-post-jar" description="Build JAR." name="jar"/>
|
<target depends="init,compile,-pre-jar,-do-jar-without-libraries,-do-jar-with-libraries,-post-jar" name="-do-jar"/>
|
||||||
|
<target depends="init,compile,-pre-jar,-do-jar,-post-jar" description="Build JAR." name="jar"/>
|
||||||
<!--
|
<!--
|
||||||
=================
|
=================
|
||||||
EXECUTION SECTION
|
EXECUTION SECTION
|
||||||
|
|
|
@ -4,5 +4,5 @@ build.xml.stylesheet.CRC32=28e38971@1.38.3.45
|
||||||
# This file is used by a NetBeans-based IDE to track changes in generated files such as build-impl.xml.
|
# This file is used by a NetBeans-based IDE to track changes in generated files such as build-impl.xml.
|
||||||
# Do not edit this file. You may delete it but then the IDE will never regenerate such files for you.
|
# Do not edit this file. You may delete it but then the IDE will never regenerate such files for you.
|
||||||
nbproject/build-impl.xml.data.CRC32=ddb4519c
|
nbproject/build-impl.xml.data.CRC32=ddb4519c
|
||||||
nbproject/build-impl.xml.script.CRC32=1c67208a
|
nbproject/build-impl.xml.script.CRC32=61508afa
|
||||||
nbproject/build-impl.xml.stylesheet.CRC32=c6d2a60f@1.56.1.46
|
nbproject/build-impl.xml.stylesheet.CRC32=5a01deb7@1.68.1.46
|
||||||
|
|
|
@ -200,7 +200,6 @@ public class EssentialsAntiBuildListener implements Listener
|
||||||
if (prot.checkProtectionItems(AntiBuildConfig.blacklist_piston, block.getTypeId()))
|
if (prot.checkProtectionItems(AntiBuildConfig.blacklist_piston, block.getTypeId()))
|
||||||
{
|
{
|
||||||
event.setCancelled(true);
|
event.setCancelled(true);
|
||||||
return;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -79,6 +79,7 @@ is divided into following sections:
|
||||||
<property file="nbproject/project.properties"/>
|
<property file="nbproject/project.properties"/>
|
||||||
</target>
|
</target>
|
||||||
<target depends="-pre-init,-init-private,-init-libraries,-init-user,-init-project,-init-macrodef-property" name="-do-init">
|
<target depends="-pre-init,-init-private,-init-libraries,-init-user,-init-project,-init-macrodef-property" name="-do-init">
|
||||||
|
<property name="platform.java" value="${java.home}/bin/java"/>
|
||||||
<available file="${manifest.file}" property="manifest.available"/>
|
<available file="${manifest.file}" property="manifest.available"/>
|
||||||
<condition property="splashscreen.available">
|
<condition property="splashscreen.available">
|
||||||
<and>
|
<and>
|
||||||
|
@ -96,10 +97,11 @@ is divided into following sections:
|
||||||
</not>
|
</not>
|
||||||
</and>
|
</and>
|
||||||
</condition>
|
</condition>
|
||||||
<condition property="manifest.available+main.class">
|
<condition property="profile.available">
|
||||||
<and>
|
<and>
|
||||||
<isset property="manifest.available"/>
|
<isset property="javac.profile"/>
|
||||||
<isset property="main.class.available"/>
|
<length length="0" string="${javac.profile}" when="greater"/>
|
||||||
|
<matches pattern="1\.[89](\..*)?" string="${javac.source}"/>
|
||||||
</and>
|
</and>
|
||||||
</condition>
|
</condition>
|
||||||
<condition property="do.archive">
|
<condition property="do.archive">
|
||||||
|
@ -116,12 +118,6 @@ is divided into following sections:
|
||||||
</not>
|
</not>
|
||||||
</and>
|
</and>
|
||||||
</condition>
|
</condition>
|
||||||
<condition property="manifest.available+main.class+mkdist.available">
|
|
||||||
<and>
|
|
||||||
<istrue value="${manifest.available+main.class}"/>
|
|
||||||
<isset property="do.mkdist"/>
|
|
||||||
</and>
|
|
||||||
</condition>
|
|
||||||
<condition property="do.archive+manifest.available">
|
<condition property="do.archive+manifest.available">
|
||||||
<and>
|
<and>
|
||||||
<isset property="manifest.available"/>
|
<isset property="manifest.available"/>
|
||||||
|
@ -140,24 +136,12 @@ is divided into following sections:
|
||||||
<istrue value="${do.archive}"/>
|
<istrue value="${do.archive}"/>
|
||||||
</and>
|
</and>
|
||||||
</condition>
|
</condition>
|
||||||
<condition property="do.archive+manifest.available+main.class">
|
<condition property="do.archive+profile.available">
|
||||||
<and>
|
<and>
|
||||||
<istrue value="${manifest.available+main.class}"/>
|
<isset property="profile.available"/>
|
||||||
<istrue value="${do.archive}"/>
|
<istrue value="${do.archive}"/>
|
||||||
</and>
|
</and>
|
||||||
</condition>
|
</condition>
|
||||||
<condition property="manifest.available-mkdist.available">
|
|
||||||
<or>
|
|
||||||
<istrue value="${manifest.available}"/>
|
|
||||||
<isset property="do.mkdist"/>
|
|
||||||
</or>
|
|
||||||
</condition>
|
|
||||||
<condition property="manifest.available+main.class-mkdist.available">
|
|
||||||
<or>
|
|
||||||
<istrue value="${manifest.available+main.class}"/>
|
|
||||||
<isset property="do.mkdist"/>
|
|
||||||
</or>
|
|
||||||
</condition>
|
|
||||||
<condition property="have.tests">
|
<condition property="have.tests">
|
||||||
<or>
|
<or>
|
||||||
<available file="${test.src.dir}"/>
|
<available file="${test.src.dir}"/>
|
||||||
|
@ -211,7 +195,15 @@ is divided into following sections:
|
||||||
</condition>
|
</condition>
|
||||||
<path id="endorsed.classpath.path" path="${endorsed.classpath}"/>
|
<path id="endorsed.classpath.path" path="${endorsed.classpath}"/>
|
||||||
<condition else="" property="endorsed.classpath.cmd.line.arg" value="-Xbootclasspath/p:'${toString:endorsed.classpath.path}'">
|
<condition else="" property="endorsed.classpath.cmd.line.arg" value="-Xbootclasspath/p:'${toString:endorsed.classpath.path}'">
|
||||||
<length length="0" string="${endorsed.classpath}" when="greater"/>
|
<and>
|
||||||
|
<isset property="endorsed.classpath"/>
|
||||||
|
<not>
|
||||||
|
<equals arg1="${endorsed.classpath}" arg2="" trim="true"/>
|
||||||
|
</not>
|
||||||
|
</and>
|
||||||
|
</condition>
|
||||||
|
<condition else="" property="javac.profile.cmd.line.arg" value="-profile ${javac.profile}">
|
||||||
|
<isset property="profile.available"/>
|
||||||
</condition>
|
</condition>
|
||||||
<condition else="false" property="jdkBug6558476">
|
<condition else="false" property="jdkBug6558476">
|
||||||
<and>
|
<and>
|
||||||
|
@ -300,6 +292,7 @@ is divided into following sections:
|
||||||
<path path="@{classpath}"/>
|
<path path="@{classpath}"/>
|
||||||
</classpath>
|
</classpath>
|
||||||
<compilerarg line="${endorsed.classpath.cmd.line.arg}"/>
|
<compilerarg line="${endorsed.classpath.cmd.line.arg}"/>
|
||||||
|
<compilerarg line="${javac.profile.cmd.line.arg}"/>
|
||||||
<compilerarg line="${javac.compilerargs}"/>
|
<compilerarg line="${javac.compilerargs}"/>
|
||||||
<compilerarg value="-processorpath"/>
|
<compilerarg value="-processorpath"/>
|
||||||
<compilerarg path="@{processorpath}:${empty.dir}"/>
|
<compilerarg path="@{processorpath}:${empty.dir}"/>
|
||||||
|
@ -339,6 +332,7 @@ is divided into following sections:
|
||||||
<path path="@{classpath}"/>
|
<path path="@{classpath}"/>
|
||||||
</classpath>
|
</classpath>
|
||||||
<compilerarg line="${endorsed.classpath.cmd.line.arg}"/>
|
<compilerarg line="${endorsed.classpath.cmd.line.arg}"/>
|
||||||
|
<compilerarg line="${javac.profile.cmd.line.arg}"/>
|
||||||
<compilerarg line="${javac.compilerargs}"/>
|
<compilerarg line="${javac.compilerargs}"/>
|
||||||
<customize/>
|
<customize/>
|
||||||
</javac>
|
</javac>
|
||||||
|
@ -471,7 +465,7 @@ is divided into following sections:
|
||||||
</fileset>
|
</fileset>
|
||||||
</union>
|
</union>
|
||||||
<taskdef classname="org.testng.TestNGAntTask" classpath="${run.test.classpath}" name="testng"/>
|
<taskdef classname="org.testng.TestNGAntTask" classpath="${run.test.classpath}" name="testng"/>
|
||||||
<testng classfilesetref="test.set" failureProperty="tests.failed" methods="${testng.methods.arg}" mode="${testng.mode}" outputdir="${build.test.results.dir}" suitename="EssentialsChat" testname="TestNG tests" workingDir="${work.dir}">
|
<testng classfilesetref="test.set" failureProperty="tests.failed" listeners="org.testng.reporters.VerboseReporter" methods="${testng.methods.arg}" mode="${testng.mode}" outputdir="${build.test.results.dir}" suitename="EssentialsChat" testname="TestNG tests" workingDir="${work.dir}">
|
||||||
<xmlfileset dir="${build.test.classes.dir}" includes="@{testincludes}"/>
|
<xmlfileset dir="${build.test.classes.dir}" includes="@{testincludes}"/>
|
||||||
<propertyset>
|
<propertyset>
|
||||||
<propertyref prefix="test-sys-prop."/>
|
<propertyref prefix="test-sys-prop."/>
|
||||||
|
@ -862,8 +856,8 @@ is divided into following sections:
|
||||||
</chainedmapper>
|
</chainedmapper>
|
||||||
</pathconvert>
|
</pathconvert>
|
||||||
<taskdef classname="org.netbeans.modules.java.j2seproject.copylibstask.CopyLibs" classpath="${libs.CopyLibs.classpath}" name="copylibs"/>
|
<taskdef classname="org.netbeans.modules.java.j2seproject.copylibstask.CopyLibs" classpath="${libs.CopyLibs.classpath}" name="copylibs"/>
|
||||||
<copylibs compress="${jar.compress}" index="${jar.index}" indexMetaInf="${jar.index.metainf}" jarfile="${dist.jar}" manifest="@{manifest}" rebase="${copylibs.rebase}" runtimeclasspath="${run.classpath.without.build.classes.dir}">
|
<copylibs compress="${jar.compress}" excludeFromCopy="${copylibs.excludes}" index="${jar.index}" indexMetaInf="${jar.index.metainf}" jarfile="${dist.jar}" manifest="@{manifest}" rebase="${copylibs.rebase}" runtimeclasspath="${run.classpath.without.build.classes.dir}">
|
||||||
<fileset dir="${build.classes.dir}"/>
|
<fileset dir="${build.classes.dir}" excludes="${dist.archive.excludes}"/>
|
||||||
<manifest>
|
<manifest>
|
||||||
<attribute name="Class-Path" value="${jar.classpath}"/>
|
<attribute name="Class-Path" value="${jar.classpath}"/>
|
||||||
<customize/>
|
<customize/>
|
||||||
|
@ -875,7 +869,7 @@ is divided into following sections:
|
||||||
<target name="-init-presetdef-jar">
|
<target name="-init-presetdef-jar">
|
||||||
<presetdef name="jar" uri="http://www.netbeans.org/ns/j2se-project/1">
|
<presetdef name="jar" uri="http://www.netbeans.org/ns/j2se-project/1">
|
||||||
<jar compress="${jar.compress}" index="${jar.index}" jarfile="${dist.jar}">
|
<jar compress="${jar.compress}" index="${jar.index}" jarfile="${dist.jar}">
|
||||||
<j2seproject1:fileset dir="${build.classes.dir}"/>
|
<j2seproject1:fileset dir="${build.classes.dir}" excludes="${dist.archive.excludes}"/>
|
||||||
</jar>
|
</jar>
|
||||||
</presetdef>
|
</presetdef>
|
||||||
</target>
|
</target>
|
||||||
|
@ -998,41 +992,25 @@ is divided into following sections:
|
||||||
<!-- Empty placeholder for easier customization. -->
|
<!-- Empty placeholder for easier customization. -->
|
||||||
<!-- You can override this target in the ../build.xml file. -->
|
<!-- You can override this target in the ../build.xml file. -->
|
||||||
</target>
|
</target>
|
||||||
<target depends="init,compile,-pre-pre-jar,-pre-jar" if="do.archive" name="-do-jar-without-manifest" unless="manifest.available-mkdist.available">
|
<target depends="init" if="do.archive" name="-do-jar-create-manifest" unless="manifest.available">
|
||||||
<j2seproject1:jar/>
|
|
||||||
</target>
|
|
||||||
<target depends="init,compile,-pre-pre-jar,-pre-jar" if="do.archive+manifest.available" name="-do-jar-with-manifest" unless="manifest.available+main.class-mkdist.available">
|
|
||||||
<j2seproject1:jar manifest="${manifest.file}"/>
|
|
||||||
</target>
|
|
||||||
<target depends="init,compile,-pre-pre-jar,-pre-jar" if="do.archive+manifest.available+main.class" name="-do-jar-with-mainclass" unless="manifest.available+main.class+mkdist.available">
|
|
||||||
<j2seproject1:jar manifest="${manifest.file}">
|
|
||||||
<j2seproject1:manifest>
|
|
||||||
<j2seproject1:attribute name="Main-Class" value="${main.class}"/>
|
|
||||||
</j2seproject1:manifest>
|
|
||||||
</j2seproject1:jar>
|
|
||||||
<echo level="info">To run this application from the command line without Ant, try:</echo>
|
|
||||||
<property location="${build.classes.dir}" name="build.classes.dir.resolved"/>
|
|
||||||
<property location="${dist.jar}" name="dist.jar.resolved"/>
|
|
||||||
<pathconvert property="run.classpath.with.dist.jar">
|
|
||||||
<path path="${run.classpath}"/>
|
|
||||||
<map from="${build.classes.dir.resolved}" to="${dist.jar.resolved}"/>
|
|
||||||
</pathconvert>
|
|
||||||
<echo level="info">java -cp "${run.classpath.with.dist.jar}" ${main.class}</echo>
|
|
||||||
</target>
|
|
||||||
<target depends="init" if="do.archive" name="-do-jar-with-libraries-create-manifest" unless="manifest.available">
|
|
||||||
<tempfile deleteonexit="true" destdir="${build.dir}" property="tmp.manifest.file"/>
|
<tempfile deleteonexit="true" destdir="${build.dir}" property="tmp.manifest.file"/>
|
||||||
<touch file="${tmp.manifest.file}" verbose="false"/>
|
<touch file="${tmp.manifest.file}" verbose="false"/>
|
||||||
</target>
|
</target>
|
||||||
<target depends="init" if="do.archive+manifest.available" name="-do-jar-with-libraries-copy-manifest">
|
<target depends="init" if="do.archive+manifest.available" name="-do-jar-copy-manifest">
|
||||||
<tempfile deleteonexit="true" destdir="${build.dir}" property="tmp.manifest.file"/>
|
<tempfile deleteonexit="true" destdir="${build.dir}" property="tmp.manifest.file"/>
|
||||||
<copy file="${manifest.file}" tofile="${tmp.manifest.file}"/>
|
<copy file="${manifest.file}" tofile="${tmp.manifest.file}"/>
|
||||||
</target>
|
</target>
|
||||||
<target depends="init,-do-jar-with-libraries-create-manifest,-do-jar-with-libraries-copy-manifest" if="do.archive+main.class.available" name="-do-jar-with-libraries-set-main">
|
<target depends="init,-do-jar-create-manifest,-do-jar-copy-manifest" if="do.archive+main.class.available" name="-do-jar-set-mainclass">
|
||||||
<manifest file="${tmp.manifest.file}" mode="update">
|
<manifest file="${tmp.manifest.file}" mode="update">
|
||||||
<attribute name="Main-Class" value="${main.class}"/>
|
<attribute name="Main-Class" value="${main.class}"/>
|
||||||
</manifest>
|
</manifest>
|
||||||
</target>
|
</target>
|
||||||
<target depends="init,-do-jar-with-libraries-create-manifest,-do-jar-with-libraries-copy-manifest" if="do.archive+splashscreen.available" name="-do-jar-with-libraries-set-splashscreen">
|
<target depends="init,-do-jar-create-manifest,-do-jar-copy-manifest" if="do.archive+profile.available" name="-do-jar-set-profile">
|
||||||
|
<manifest file="${tmp.manifest.file}" mode="update">
|
||||||
|
<attribute name="Profile" value="${javac.profile}"/>
|
||||||
|
</manifest>
|
||||||
|
</target>
|
||||||
|
<target depends="init,-do-jar-create-manifest,-do-jar-copy-manifest" if="do.archive+splashscreen.available" name="-do-jar-set-splashscreen">
|
||||||
<basename file="${application.splash}" property="splashscreen.basename"/>
|
<basename file="${application.splash}" property="splashscreen.basename"/>
|
||||||
<mkdir dir="${build.classes.dir}/META-INF"/>
|
<mkdir dir="${build.classes.dir}/META-INF"/>
|
||||||
<copy failonerror="false" file="${application.splash}" todir="${build.classes.dir}/META-INF"/>
|
<copy failonerror="false" file="${application.splash}" todir="${build.classes.dir}/META-INF"/>
|
||||||
|
@ -1040,23 +1018,41 @@ is divided into following sections:
|
||||||
<attribute name="SplashScreen-Image" value="META-INF/${splashscreen.basename}"/>
|
<attribute name="SplashScreen-Image" value="META-INF/${splashscreen.basename}"/>
|
||||||
</manifest>
|
</manifest>
|
||||||
</target>
|
</target>
|
||||||
<target depends="init,-init-macrodef-copylibs,compile,-pre-pre-jar,-pre-jar,-do-jar-with-libraries-create-manifest,-do-jar-with-libraries-copy-manifest,-do-jar-with-libraries-set-main,-do-jar-with-libraries-set-splashscreen" if="do.mkdist" name="-do-jar-with-libraries-pack">
|
<target depends="init,-init-macrodef-copylibs,compile,-pre-pre-jar,-pre-jar,-do-jar-create-manifest,-do-jar-copy-manifest,-do-jar-set-mainclass,-do-jar-set-profile,-do-jar-set-splashscreen" if="do.mkdist" name="-do-jar-copylibs">
|
||||||
<j2seproject3:copylibs manifest="${tmp.manifest.file}"/>
|
<j2seproject3:copylibs manifest="${tmp.manifest.file}"/>
|
||||||
<echo level="info">To run this application from the command line without Ant, try:</echo>
|
<echo level="info">To run this application from the command line without Ant, try:</echo>
|
||||||
<property location="${dist.jar}" name="dist.jar.resolved"/>
|
<property location="${dist.jar}" name="dist.jar.resolved"/>
|
||||||
<echo level="info">java -jar "${dist.jar.resolved}"</echo>
|
<echo level="info">java -jar "${dist.jar.resolved}"</echo>
|
||||||
</target>
|
</target>
|
||||||
<target depends="-do-jar-with-libraries-pack" if="do.archive" name="-do-jar-with-libraries-delete-manifest">
|
<target depends="init,compile,-pre-pre-jar,-pre-jar,-do-jar-create-manifest,-do-jar-copy-manifest,-do-jar-set-mainclass,-do-jar-set-profile,-do-jar-set-splashscreen" if="do.archive" name="-do-jar-jar" unless="do.mkdist">
|
||||||
|
<j2seproject1:jar manifest="${tmp.manifest.file}"/>
|
||||||
|
<property location="${build.classes.dir}" name="build.classes.dir.resolved"/>
|
||||||
|
<property location="${dist.jar}" name="dist.jar.resolved"/>
|
||||||
|
<pathconvert property="run.classpath.with.dist.jar">
|
||||||
|
<path path="${run.classpath}"/>
|
||||||
|
<map from="${build.classes.dir.resolved}" to="${dist.jar.resolved}"/>
|
||||||
|
</pathconvert>
|
||||||
|
<condition else="" property="jar.usage.message" value="To run this application from the command line without Ant, try:${line.separator}${platform.java} -cp ${run.classpath.with.dist.jar} ${main.class}">
|
||||||
|
<isset property="main.class.available"/>
|
||||||
|
</condition>
|
||||||
|
<condition else="debug" property="jar.usage.level" value="info">
|
||||||
|
<isset property="main.class.available"/>
|
||||||
|
</condition>
|
||||||
|
<echo level="${jar.usage.level}" message="${jar.usage.message}"/>
|
||||||
|
</target>
|
||||||
|
<target depends="-do-jar-copylibs" if="do.archive" name="-do-jar-delete-manifest">
|
||||||
<delete>
|
<delete>
|
||||||
<fileset file="${tmp.manifest.file}"/>
|
<fileset file="${tmp.manifest.file}"/>
|
||||||
</delete>
|
</delete>
|
||||||
</target>
|
</target>
|
||||||
<target depends="init,compile,-pre-pre-jar,-pre-jar,-do-jar-with-libraries-create-manifest,-do-jar-with-libraries-copy-manifest,-do-jar-with-libraries-set-main,-do-jar-with-libraries-set-splashscreen,-do-jar-with-libraries-pack,-do-jar-with-libraries-delete-manifest" name="-do-jar-with-libraries"/>
|
<target depends="init,compile,-pre-pre-jar,-pre-jar,-do-jar-create-manifest,-do-jar-copy-manifest,-do-jar-set-mainclass,-do-jar-set-profile,-do-jar-set-splashscreen,-do-jar-jar,-do-jar-delete-manifest" name="-do-jar-without-libraries"/>
|
||||||
|
<target depends="init,compile,-pre-pre-jar,-pre-jar,-do-jar-create-manifest,-do-jar-copy-manifest,-do-jar-set-mainclass,-do-jar-set-profile,-do-jar-set-splashscreen,-do-jar-copylibs,-do-jar-delete-manifest" name="-do-jar-with-libraries"/>
|
||||||
<target name="-post-jar">
|
<target name="-post-jar">
|
||||||
<!-- Empty placeholder for easier customization. -->
|
<!-- Empty placeholder for easier customization. -->
|
||||||
<!-- You can override this target in the ../build.xml file. -->
|
<!-- You can override this target in the ../build.xml file. -->
|
||||||
</target>
|
</target>
|
||||||
<target depends="init,compile,-pre-jar,-do-jar-with-manifest,-do-jar-without-manifest,-do-jar-with-mainclass,-do-jar-with-libraries,-post-jar" description="Build JAR." name="jar"/>
|
<target depends="init,compile,-pre-jar,-do-jar-without-libraries,-do-jar-with-libraries,-post-jar" name="-do-jar"/>
|
||||||
|
<target depends="init,compile,-pre-jar,-do-jar,-post-jar" description="Build JAR." name="jar"/>
|
||||||
<!--
|
<!--
|
||||||
=================
|
=================
|
||||||
EXECUTION SECTION
|
EXECUTION SECTION
|
||||||
|
|
|
@ -4,5 +4,5 @@ build.xml.stylesheet.CRC32=28e38971@1.38.2.45
|
||||||
# This file is used by a NetBeans-based IDE to track changes in generated files such as build-impl.xml.
|
# This file is used by a NetBeans-based IDE to track changes in generated files such as build-impl.xml.
|
||||||
# Do not edit this file. You may delete it but then the IDE will never regenerate such files for you.
|
# Do not edit this file. You may delete it but then the IDE will never regenerate such files for you.
|
||||||
nbproject/build-impl.xml.data.CRC32=7c7f517b
|
nbproject/build-impl.xml.data.CRC32=7c7f517b
|
||||||
nbproject/build-impl.xml.script.CRC32=c6c8dc20
|
nbproject/build-impl.xml.script.CRC32=32fc3d78
|
||||||
nbproject/build-impl.xml.stylesheet.CRC32=c6d2a60f@1.56.1.46
|
nbproject/build-impl.xml.stylesheet.CRC32=5a01deb7@1.68.1.46
|
||||||
|
|
|
@ -34,7 +34,7 @@ public class ChatStore
|
||||||
return type;
|
return type;
|
||||||
}
|
}
|
||||||
|
|
||||||
public String getLongType()
|
public final String getLongType()
|
||||||
{
|
{
|
||||||
return type.length() == 0 ? "chat" : "chat-" + type;
|
return type.length() == 0 ? "chat" : "chat-" + type;
|
||||||
}
|
}
|
||||||
|
|
|
@ -5,7 +5,6 @@ import net.ess3.api.IEssentials;
|
||||||
import java.util.Collections;
|
import java.util.Collections;
|
||||||
import java.util.HashMap;
|
import java.util.HashMap;
|
||||||
import java.util.Map;
|
import java.util.Map;
|
||||||
import java.util.concurrent.ConcurrentSkipListMap;
|
|
||||||
import java.util.logging.Level;
|
import java.util.logging.Level;
|
||||||
import java.util.logging.Logger;
|
import java.util.logging.Logger;
|
||||||
import org.bukkit.event.player.AsyncPlayerChatEvent;
|
import org.bukkit.event.player.AsyncPlayerChatEvent;
|
||||||
|
|
|
@ -12,8 +12,8 @@ import org.bukkit.event.player.AsyncPlayerChatEvent;
|
||||||
|
|
||||||
public abstract class EssentialsChatPlayer implements Listener
|
public abstract class EssentialsChatPlayer implements Listener
|
||||||
{
|
{
|
||||||
protected transient IEssentials ess;
|
|
||||||
protected final static Logger logger = Logger.getLogger("Minecraft");
|
protected final static Logger logger = Logger.getLogger("Minecraft");
|
||||||
|
protected transient IEssentials ess;
|
||||||
protected final transient Server server;
|
protected final transient Server server;
|
||||||
protected final transient Map<AsyncPlayerChatEvent, ChatStore> chatStorage;
|
protected final transient Map<AsyncPlayerChatEvent, ChatStore> chatStorage;
|
||||||
|
|
||||||
|
|
|
@ -79,6 +79,7 @@ is divided into following sections:
|
||||||
<property file="nbproject/project.properties"/>
|
<property file="nbproject/project.properties"/>
|
||||||
</target>
|
</target>
|
||||||
<target depends="-pre-init,-init-private,-init-libraries,-init-user,-init-project,-init-macrodef-property" name="-do-init">
|
<target depends="-pre-init,-init-private,-init-libraries,-init-user,-init-project,-init-macrodef-property" name="-do-init">
|
||||||
|
<property name="platform.java" value="${java.home}/bin/java"/>
|
||||||
<available file="${manifest.file}" property="manifest.available"/>
|
<available file="${manifest.file}" property="manifest.available"/>
|
||||||
<condition property="splashscreen.available">
|
<condition property="splashscreen.available">
|
||||||
<and>
|
<and>
|
||||||
|
@ -96,10 +97,11 @@ is divided into following sections:
|
||||||
</not>
|
</not>
|
||||||
</and>
|
</and>
|
||||||
</condition>
|
</condition>
|
||||||
<condition property="manifest.available+main.class">
|
<condition property="profile.available">
|
||||||
<and>
|
<and>
|
||||||
<isset property="manifest.available"/>
|
<isset property="javac.profile"/>
|
||||||
<isset property="main.class.available"/>
|
<length length="0" string="${javac.profile}" when="greater"/>
|
||||||
|
<matches pattern="1\.[89](\..*)?" string="${javac.source}"/>
|
||||||
</and>
|
</and>
|
||||||
</condition>
|
</condition>
|
||||||
<condition property="do.archive">
|
<condition property="do.archive">
|
||||||
|
@ -116,12 +118,6 @@ is divided into following sections:
|
||||||
</not>
|
</not>
|
||||||
</and>
|
</and>
|
||||||
</condition>
|
</condition>
|
||||||
<condition property="manifest.available+main.class+mkdist.available">
|
|
||||||
<and>
|
|
||||||
<istrue value="${manifest.available+main.class}"/>
|
|
||||||
<isset property="do.mkdist"/>
|
|
||||||
</and>
|
|
||||||
</condition>
|
|
||||||
<condition property="do.archive+manifest.available">
|
<condition property="do.archive+manifest.available">
|
||||||
<and>
|
<and>
|
||||||
<isset property="manifest.available"/>
|
<isset property="manifest.available"/>
|
||||||
|
@ -140,24 +136,12 @@ is divided into following sections:
|
||||||
<istrue value="${do.archive}"/>
|
<istrue value="${do.archive}"/>
|
||||||
</and>
|
</and>
|
||||||
</condition>
|
</condition>
|
||||||
<condition property="do.archive+manifest.available+main.class">
|
<condition property="do.archive+profile.available">
|
||||||
<and>
|
<and>
|
||||||
<istrue value="${manifest.available+main.class}"/>
|
<isset property="profile.available"/>
|
||||||
<istrue value="${do.archive}"/>
|
<istrue value="${do.archive}"/>
|
||||||
</and>
|
</and>
|
||||||
</condition>
|
</condition>
|
||||||
<condition property="manifest.available-mkdist.available">
|
|
||||||
<or>
|
|
||||||
<istrue value="${manifest.available}"/>
|
|
||||||
<isset property="do.mkdist"/>
|
|
||||||
</or>
|
|
||||||
</condition>
|
|
||||||
<condition property="manifest.available+main.class-mkdist.available">
|
|
||||||
<or>
|
|
||||||
<istrue value="${manifest.available+main.class}"/>
|
|
||||||
<isset property="do.mkdist"/>
|
|
||||||
</or>
|
|
||||||
</condition>
|
|
||||||
<condition property="have.tests">
|
<condition property="have.tests">
|
||||||
<or>
|
<or>
|
||||||
<available file="${test.src.dir}"/>
|
<available file="${test.src.dir}"/>
|
||||||
|
@ -211,7 +195,15 @@ is divided into following sections:
|
||||||
</condition>
|
</condition>
|
||||||
<path id="endorsed.classpath.path" path="${endorsed.classpath}"/>
|
<path id="endorsed.classpath.path" path="${endorsed.classpath}"/>
|
||||||
<condition else="" property="endorsed.classpath.cmd.line.arg" value="-Xbootclasspath/p:'${toString:endorsed.classpath.path}'">
|
<condition else="" property="endorsed.classpath.cmd.line.arg" value="-Xbootclasspath/p:'${toString:endorsed.classpath.path}'">
|
||||||
<length length="0" string="${endorsed.classpath}" when="greater"/>
|
<and>
|
||||||
|
<isset property="endorsed.classpath"/>
|
||||||
|
<not>
|
||||||
|
<equals arg1="${endorsed.classpath}" arg2="" trim="true"/>
|
||||||
|
</not>
|
||||||
|
</and>
|
||||||
|
</condition>
|
||||||
|
<condition else="" property="javac.profile.cmd.line.arg" value="-profile ${javac.profile}">
|
||||||
|
<isset property="profile.available"/>
|
||||||
</condition>
|
</condition>
|
||||||
<condition else="false" property="jdkBug6558476">
|
<condition else="false" property="jdkBug6558476">
|
||||||
<and>
|
<and>
|
||||||
|
@ -300,6 +292,7 @@ is divided into following sections:
|
||||||
<path path="@{classpath}"/>
|
<path path="@{classpath}"/>
|
||||||
</classpath>
|
</classpath>
|
||||||
<compilerarg line="${endorsed.classpath.cmd.line.arg}"/>
|
<compilerarg line="${endorsed.classpath.cmd.line.arg}"/>
|
||||||
|
<compilerarg line="${javac.profile.cmd.line.arg}"/>
|
||||||
<compilerarg line="${javac.compilerargs}"/>
|
<compilerarg line="${javac.compilerargs}"/>
|
||||||
<compilerarg value="-processorpath"/>
|
<compilerarg value="-processorpath"/>
|
||||||
<compilerarg path="@{processorpath}:${empty.dir}"/>
|
<compilerarg path="@{processorpath}:${empty.dir}"/>
|
||||||
|
@ -339,6 +332,7 @@ is divided into following sections:
|
||||||
<path path="@{classpath}"/>
|
<path path="@{classpath}"/>
|
||||||
</classpath>
|
</classpath>
|
||||||
<compilerarg line="${endorsed.classpath.cmd.line.arg}"/>
|
<compilerarg line="${endorsed.classpath.cmd.line.arg}"/>
|
||||||
|
<compilerarg line="${javac.profile.cmd.line.arg}"/>
|
||||||
<compilerarg line="${javac.compilerargs}"/>
|
<compilerarg line="${javac.compilerargs}"/>
|
||||||
<customize/>
|
<customize/>
|
||||||
</javac>
|
</javac>
|
||||||
|
@ -471,7 +465,7 @@ is divided into following sections:
|
||||||
</fileset>
|
</fileset>
|
||||||
</union>
|
</union>
|
||||||
<taskdef classname="org.testng.TestNGAntTask" classpath="${run.test.classpath}" name="testng"/>
|
<taskdef classname="org.testng.TestNGAntTask" classpath="${run.test.classpath}" name="testng"/>
|
||||||
<testng classfilesetref="test.set" failureProperty="tests.failed" methods="${testng.methods.arg}" mode="${testng.mode}" outputdir="${build.test.results.dir}" suitename="EssentialsProtect" testname="TestNG tests" workingDir="${work.dir}">
|
<testng classfilesetref="test.set" failureProperty="tests.failed" listeners="org.testng.reporters.VerboseReporter" methods="${testng.methods.arg}" mode="${testng.mode}" outputdir="${build.test.results.dir}" suitename="EssentialsProtect" testname="TestNG tests" workingDir="${work.dir}">
|
||||||
<xmlfileset dir="${build.test.classes.dir}" includes="@{testincludes}"/>
|
<xmlfileset dir="${build.test.classes.dir}" includes="@{testincludes}"/>
|
||||||
<propertyset>
|
<propertyset>
|
||||||
<propertyref prefix="test-sys-prop."/>
|
<propertyref prefix="test-sys-prop."/>
|
||||||
|
@ -862,8 +856,8 @@ is divided into following sections:
|
||||||
</chainedmapper>
|
</chainedmapper>
|
||||||
</pathconvert>
|
</pathconvert>
|
||||||
<taskdef classname="org.netbeans.modules.java.j2seproject.copylibstask.CopyLibs" classpath="${libs.CopyLibs.classpath}" name="copylibs"/>
|
<taskdef classname="org.netbeans.modules.java.j2seproject.copylibstask.CopyLibs" classpath="${libs.CopyLibs.classpath}" name="copylibs"/>
|
||||||
<copylibs compress="${jar.compress}" index="${jar.index}" indexMetaInf="${jar.index.metainf}" jarfile="${dist.jar}" manifest="@{manifest}" rebase="${copylibs.rebase}" runtimeclasspath="${run.classpath.without.build.classes.dir}">
|
<copylibs compress="${jar.compress}" excludeFromCopy="${copylibs.excludes}" index="${jar.index}" indexMetaInf="${jar.index.metainf}" jarfile="${dist.jar}" manifest="@{manifest}" rebase="${copylibs.rebase}" runtimeclasspath="${run.classpath.without.build.classes.dir}">
|
||||||
<fileset dir="${build.classes.dir}"/>
|
<fileset dir="${build.classes.dir}" excludes="${dist.archive.excludes}"/>
|
||||||
<manifest>
|
<manifest>
|
||||||
<attribute name="Class-Path" value="${jar.classpath}"/>
|
<attribute name="Class-Path" value="${jar.classpath}"/>
|
||||||
<customize/>
|
<customize/>
|
||||||
|
@ -875,7 +869,7 @@ is divided into following sections:
|
||||||
<target name="-init-presetdef-jar">
|
<target name="-init-presetdef-jar">
|
||||||
<presetdef name="jar" uri="http://www.netbeans.org/ns/j2se-project/1">
|
<presetdef name="jar" uri="http://www.netbeans.org/ns/j2se-project/1">
|
||||||
<jar compress="${jar.compress}" index="${jar.index}" jarfile="${dist.jar}">
|
<jar compress="${jar.compress}" index="${jar.index}" jarfile="${dist.jar}">
|
||||||
<j2seproject1:fileset dir="${build.classes.dir}"/>
|
<j2seproject1:fileset dir="${build.classes.dir}" excludes="${dist.archive.excludes}"/>
|
||||||
</jar>
|
</jar>
|
||||||
</presetdef>
|
</presetdef>
|
||||||
</target>
|
</target>
|
||||||
|
@ -998,41 +992,25 @@ is divided into following sections:
|
||||||
<!-- Empty placeholder for easier customization. -->
|
<!-- Empty placeholder for easier customization. -->
|
||||||
<!-- You can override this target in the ../build.xml file. -->
|
<!-- You can override this target in the ../build.xml file. -->
|
||||||
</target>
|
</target>
|
||||||
<target depends="init,compile,-pre-pre-jar,-pre-jar" if="do.archive" name="-do-jar-without-manifest" unless="manifest.available-mkdist.available">
|
<target depends="init" if="do.archive" name="-do-jar-create-manifest" unless="manifest.available">
|
||||||
<j2seproject1:jar/>
|
|
||||||
</target>
|
|
||||||
<target depends="init,compile,-pre-pre-jar,-pre-jar" if="do.archive+manifest.available" name="-do-jar-with-manifest" unless="manifest.available+main.class-mkdist.available">
|
|
||||||
<j2seproject1:jar manifest="${manifest.file}"/>
|
|
||||||
</target>
|
|
||||||
<target depends="init,compile,-pre-pre-jar,-pre-jar" if="do.archive+manifest.available+main.class" name="-do-jar-with-mainclass" unless="manifest.available+main.class+mkdist.available">
|
|
||||||
<j2seproject1:jar manifest="${manifest.file}">
|
|
||||||
<j2seproject1:manifest>
|
|
||||||
<j2seproject1:attribute name="Main-Class" value="${main.class}"/>
|
|
||||||
</j2seproject1:manifest>
|
|
||||||
</j2seproject1:jar>
|
|
||||||
<echo level="info">To run this application from the command line without Ant, try:</echo>
|
|
||||||
<property location="${build.classes.dir}" name="build.classes.dir.resolved"/>
|
|
||||||
<property location="${dist.jar}" name="dist.jar.resolved"/>
|
|
||||||
<pathconvert property="run.classpath.with.dist.jar">
|
|
||||||
<path path="${run.classpath}"/>
|
|
||||||
<map from="${build.classes.dir.resolved}" to="${dist.jar.resolved}"/>
|
|
||||||
</pathconvert>
|
|
||||||
<echo level="info">java -cp "${run.classpath.with.dist.jar}" ${main.class}</echo>
|
|
||||||
</target>
|
|
||||||
<target depends="init" if="do.archive" name="-do-jar-with-libraries-create-manifest" unless="manifest.available">
|
|
||||||
<tempfile deleteonexit="true" destdir="${build.dir}" property="tmp.manifest.file"/>
|
<tempfile deleteonexit="true" destdir="${build.dir}" property="tmp.manifest.file"/>
|
||||||
<touch file="${tmp.manifest.file}" verbose="false"/>
|
<touch file="${tmp.manifest.file}" verbose="false"/>
|
||||||
</target>
|
</target>
|
||||||
<target depends="init" if="do.archive+manifest.available" name="-do-jar-with-libraries-copy-manifest">
|
<target depends="init" if="do.archive+manifest.available" name="-do-jar-copy-manifest">
|
||||||
<tempfile deleteonexit="true" destdir="${build.dir}" property="tmp.manifest.file"/>
|
<tempfile deleteonexit="true" destdir="${build.dir}" property="tmp.manifest.file"/>
|
||||||
<copy file="${manifest.file}" tofile="${tmp.manifest.file}"/>
|
<copy file="${manifest.file}" tofile="${tmp.manifest.file}"/>
|
||||||
</target>
|
</target>
|
||||||
<target depends="init,-do-jar-with-libraries-create-manifest,-do-jar-with-libraries-copy-manifest" if="do.archive+main.class.available" name="-do-jar-with-libraries-set-main">
|
<target depends="init,-do-jar-create-manifest,-do-jar-copy-manifest" if="do.archive+main.class.available" name="-do-jar-set-mainclass">
|
||||||
<manifest file="${tmp.manifest.file}" mode="update">
|
<manifest file="${tmp.manifest.file}" mode="update">
|
||||||
<attribute name="Main-Class" value="${main.class}"/>
|
<attribute name="Main-Class" value="${main.class}"/>
|
||||||
</manifest>
|
</manifest>
|
||||||
</target>
|
</target>
|
||||||
<target depends="init,-do-jar-with-libraries-create-manifest,-do-jar-with-libraries-copy-manifest" if="do.archive+splashscreen.available" name="-do-jar-with-libraries-set-splashscreen">
|
<target depends="init,-do-jar-create-manifest,-do-jar-copy-manifest" if="do.archive+profile.available" name="-do-jar-set-profile">
|
||||||
|
<manifest file="${tmp.manifest.file}" mode="update">
|
||||||
|
<attribute name="Profile" value="${javac.profile}"/>
|
||||||
|
</manifest>
|
||||||
|
</target>
|
||||||
|
<target depends="init,-do-jar-create-manifest,-do-jar-copy-manifest" if="do.archive+splashscreen.available" name="-do-jar-set-splashscreen">
|
||||||
<basename file="${application.splash}" property="splashscreen.basename"/>
|
<basename file="${application.splash}" property="splashscreen.basename"/>
|
||||||
<mkdir dir="${build.classes.dir}/META-INF"/>
|
<mkdir dir="${build.classes.dir}/META-INF"/>
|
||||||
<copy failonerror="false" file="${application.splash}" todir="${build.classes.dir}/META-INF"/>
|
<copy failonerror="false" file="${application.splash}" todir="${build.classes.dir}/META-INF"/>
|
||||||
|
@ -1040,23 +1018,41 @@ is divided into following sections:
|
||||||
<attribute name="SplashScreen-Image" value="META-INF/${splashscreen.basename}"/>
|
<attribute name="SplashScreen-Image" value="META-INF/${splashscreen.basename}"/>
|
||||||
</manifest>
|
</manifest>
|
||||||
</target>
|
</target>
|
||||||
<target depends="init,-init-macrodef-copylibs,compile,-pre-pre-jar,-pre-jar,-do-jar-with-libraries-create-manifest,-do-jar-with-libraries-copy-manifest,-do-jar-with-libraries-set-main,-do-jar-with-libraries-set-splashscreen" if="do.mkdist" name="-do-jar-with-libraries-pack">
|
<target depends="init,-init-macrodef-copylibs,compile,-pre-pre-jar,-pre-jar,-do-jar-create-manifest,-do-jar-copy-manifest,-do-jar-set-mainclass,-do-jar-set-profile,-do-jar-set-splashscreen" if="do.mkdist" name="-do-jar-copylibs">
|
||||||
<j2seproject3:copylibs manifest="${tmp.manifest.file}"/>
|
<j2seproject3:copylibs manifest="${tmp.manifest.file}"/>
|
||||||
<echo level="info">To run this application from the command line without Ant, try:</echo>
|
<echo level="info">To run this application from the command line without Ant, try:</echo>
|
||||||
<property location="${dist.jar}" name="dist.jar.resolved"/>
|
<property location="${dist.jar}" name="dist.jar.resolved"/>
|
||||||
<echo level="info">java -jar "${dist.jar.resolved}"</echo>
|
<echo level="info">java -jar "${dist.jar.resolved}"</echo>
|
||||||
</target>
|
</target>
|
||||||
<target depends="-do-jar-with-libraries-pack" if="do.archive" name="-do-jar-with-libraries-delete-manifest">
|
<target depends="init,compile,-pre-pre-jar,-pre-jar,-do-jar-create-manifest,-do-jar-copy-manifest,-do-jar-set-mainclass,-do-jar-set-profile,-do-jar-set-splashscreen" if="do.archive" name="-do-jar-jar" unless="do.mkdist">
|
||||||
|
<j2seproject1:jar manifest="${tmp.manifest.file}"/>
|
||||||
|
<property location="${build.classes.dir}" name="build.classes.dir.resolved"/>
|
||||||
|
<property location="${dist.jar}" name="dist.jar.resolved"/>
|
||||||
|
<pathconvert property="run.classpath.with.dist.jar">
|
||||||
|
<path path="${run.classpath}"/>
|
||||||
|
<map from="${build.classes.dir.resolved}" to="${dist.jar.resolved}"/>
|
||||||
|
</pathconvert>
|
||||||
|
<condition else="" property="jar.usage.message" value="To run this application from the command line without Ant, try:${line.separator}${platform.java} -cp ${run.classpath.with.dist.jar} ${main.class}">
|
||||||
|
<isset property="main.class.available"/>
|
||||||
|
</condition>
|
||||||
|
<condition else="debug" property="jar.usage.level" value="info">
|
||||||
|
<isset property="main.class.available"/>
|
||||||
|
</condition>
|
||||||
|
<echo level="${jar.usage.level}" message="${jar.usage.message}"/>
|
||||||
|
</target>
|
||||||
|
<target depends="-do-jar-copylibs" if="do.archive" name="-do-jar-delete-manifest">
|
||||||
<delete>
|
<delete>
|
||||||
<fileset file="${tmp.manifest.file}"/>
|
<fileset file="${tmp.manifest.file}"/>
|
||||||
</delete>
|
</delete>
|
||||||
</target>
|
</target>
|
||||||
<target depends="init,compile,-pre-pre-jar,-pre-jar,-do-jar-with-libraries-create-manifest,-do-jar-with-libraries-copy-manifest,-do-jar-with-libraries-set-main,-do-jar-with-libraries-set-splashscreen,-do-jar-with-libraries-pack,-do-jar-with-libraries-delete-manifest" name="-do-jar-with-libraries"/>
|
<target depends="init,compile,-pre-pre-jar,-pre-jar,-do-jar-create-manifest,-do-jar-copy-manifest,-do-jar-set-mainclass,-do-jar-set-profile,-do-jar-set-splashscreen,-do-jar-jar,-do-jar-delete-manifest" name="-do-jar-without-libraries"/>
|
||||||
|
<target depends="init,compile,-pre-pre-jar,-pre-jar,-do-jar-create-manifest,-do-jar-copy-manifest,-do-jar-set-mainclass,-do-jar-set-profile,-do-jar-set-splashscreen,-do-jar-copylibs,-do-jar-delete-manifest" name="-do-jar-with-libraries"/>
|
||||||
<target name="-post-jar">
|
<target name="-post-jar">
|
||||||
<!-- Empty placeholder for easier customization. -->
|
<!-- Empty placeholder for easier customization. -->
|
||||||
<!-- You can override this target in the ../build.xml file. -->
|
<!-- You can override this target in the ../build.xml file. -->
|
||||||
</target>
|
</target>
|
||||||
<target depends="init,compile,-pre-jar,-do-jar-with-manifest,-do-jar-without-manifest,-do-jar-with-mainclass,-do-jar-with-libraries,-post-jar" description="Build JAR." name="jar"/>
|
<target depends="init,compile,-pre-jar,-do-jar-without-libraries,-do-jar-with-libraries,-post-jar" name="-do-jar"/>
|
||||||
|
<target depends="init,compile,-pre-jar,-do-jar,-post-jar" description="Build JAR." name="jar"/>
|
||||||
<!--
|
<!--
|
||||||
=================
|
=================
|
||||||
EXECUTION SECTION
|
EXECUTION SECTION
|
||||||
|
|
|
@ -4,5 +4,5 @@ build.xml.stylesheet.CRC32=28e38971@1.38.3.45
|
||||||
# This file is used by a NetBeans-based IDE to track changes in generated files such as build-impl.xml.
|
# This file is used by a NetBeans-based IDE to track changes in generated files such as build-impl.xml.
|
||||||
# Do not edit this file. You may delete it but then the IDE will never regenerate such files for you.
|
# Do not edit this file. You may delete it but then the IDE will never regenerate such files for you.
|
||||||
nbproject/build-impl.xml.data.CRC32=40644caa
|
nbproject/build-impl.xml.data.CRC32=40644caa
|
||||||
nbproject/build-impl.xml.script.CRC32=60fc07c9
|
nbproject/build-impl.xml.script.CRC32=b766656c
|
||||||
nbproject/build-impl.xml.stylesheet.CRC32=c6d2a60f@1.56.1.46
|
nbproject/build-impl.xml.stylesheet.CRC32=5a01deb7@1.68.1.46
|
||||||
|
|
|
@ -79,6 +79,7 @@ is divided into following sections:
|
||||||
<property file="nbproject/project.properties"/>
|
<property file="nbproject/project.properties"/>
|
||||||
</target>
|
</target>
|
||||||
<target depends="-pre-init,-init-private,-init-libraries,-init-user,-init-project,-init-macrodef-property" name="-do-init">
|
<target depends="-pre-init,-init-private,-init-libraries,-init-user,-init-project,-init-macrodef-property" name="-do-init">
|
||||||
|
<property name="platform.java" value="${java.home}/bin/java"/>
|
||||||
<available file="${manifest.file}" property="manifest.available"/>
|
<available file="${manifest.file}" property="manifest.available"/>
|
||||||
<condition property="splashscreen.available">
|
<condition property="splashscreen.available">
|
||||||
<and>
|
<and>
|
||||||
|
@ -96,10 +97,11 @@ is divided into following sections:
|
||||||
</not>
|
</not>
|
||||||
</and>
|
</and>
|
||||||
</condition>
|
</condition>
|
||||||
<condition property="manifest.available+main.class">
|
<condition property="profile.available">
|
||||||
<and>
|
<and>
|
||||||
<isset property="manifest.available"/>
|
<isset property="javac.profile"/>
|
||||||
<isset property="main.class.available"/>
|
<length length="0" string="${javac.profile}" when="greater"/>
|
||||||
|
<matches pattern="1\.[89](\..*)?" string="${javac.source}"/>
|
||||||
</and>
|
</and>
|
||||||
</condition>
|
</condition>
|
||||||
<condition property="do.archive">
|
<condition property="do.archive">
|
||||||
|
@ -116,12 +118,6 @@ is divided into following sections:
|
||||||
</not>
|
</not>
|
||||||
</and>
|
</and>
|
||||||
</condition>
|
</condition>
|
||||||
<condition property="manifest.available+main.class+mkdist.available">
|
|
||||||
<and>
|
|
||||||
<istrue value="${manifest.available+main.class}"/>
|
|
||||||
<isset property="do.mkdist"/>
|
|
||||||
</and>
|
|
||||||
</condition>
|
|
||||||
<condition property="do.archive+manifest.available">
|
<condition property="do.archive+manifest.available">
|
||||||
<and>
|
<and>
|
||||||
<isset property="manifest.available"/>
|
<isset property="manifest.available"/>
|
||||||
|
@ -140,24 +136,12 @@ is divided into following sections:
|
||||||
<istrue value="${do.archive}"/>
|
<istrue value="${do.archive}"/>
|
||||||
</and>
|
</and>
|
||||||
</condition>
|
</condition>
|
||||||
<condition property="do.archive+manifest.available+main.class">
|
<condition property="do.archive+profile.available">
|
||||||
<and>
|
<and>
|
||||||
<istrue value="${manifest.available+main.class}"/>
|
<isset property="profile.available"/>
|
||||||
<istrue value="${do.archive}"/>
|
<istrue value="${do.archive}"/>
|
||||||
</and>
|
</and>
|
||||||
</condition>
|
</condition>
|
||||||
<condition property="manifest.available-mkdist.available">
|
|
||||||
<or>
|
|
||||||
<istrue value="${manifest.available}"/>
|
|
||||||
<isset property="do.mkdist"/>
|
|
||||||
</or>
|
|
||||||
</condition>
|
|
||||||
<condition property="manifest.available+main.class-mkdist.available">
|
|
||||||
<or>
|
|
||||||
<istrue value="${manifest.available+main.class}"/>
|
|
||||||
<isset property="do.mkdist"/>
|
|
||||||
</or>
|
|
||||||
</condition>
|
|
||||||
<condition property="have.tests">
|
<condition property="have.tests">
|
||||||
<or>
|
<or>
|
||||||
<available file="${test.src.dir}"/>
|
<available file="${test.src.dir}"/>
|
||||||
|
@ -211,7 +195,15 @@ is divided into following sections:
|
||||||
</condition>
|
</condition>
|
||||||
<path id="endorsed.classpath.path" path="${endorsed.classpath}"/>
|
<path id="endorsed.classpath.path" path="${endorsed.classpath}"/>
|
||||||
<condition else="" property="endorsed.classpath.cmd.line.arg" value="-Xbootclasspath/p:'${toString:endorsed.classpath.path}'">
|
<condition else="" property="endorsed.classpath.cmd.line.arg" value="-Xbootclasspath/p:'${toString:endorsed.classpath.path}'">
|
||||||
<length length="0" string="${endorsed.classpath}" when="greater"/>
|
<and>
|
||||||
|
<isset property="endorsed.classpath"/>
|
||||||
|
<not>
|
||||||
|
<equals arg1="${endorsed.classpath}" arg2="" trim="true"/>
|
||||||
|
</not>
|
||||||
|
</and>
|
||||||
|
</condition>
|
||||||
|
<condition else="" property="javac.profile.cmd.line.arg" value="-profile ${javac.profile}">
|
||||||
|
<isset property="profile.available"/>
|
||||||
</condition>
|
</condition>
|
||||||
<condition else="false" property="jdkBug6558476">
|
<condition else="false" property="jdkBug6558476">
|
||||||
<and>
|
<and>
|
||||||
|
@ -300,6 +292,7 @@ is divided into following sections:
|
||||||
<path path="@{classpath}"/>
|
<path path="@{classpath}"/>
|
||||||
</classpath>
|
</classpath>
|
||||||
<compilerarg line="${endorsed.classpath.cmd.line.arg}"/>
|
<compilerarg line="${endorsed.classpath.cmd.line.arg}"/>
|
||||||
|
<compilerarg line="${javac.profile.cmd.line.arg}"/>
|
||||||
<compilerarg line="${javac.compilerargs}"/>
|
<compilerarg line="${javac.compilerargs}"/>
|
||||||
<compilerarg value="-processorpath"/>
|
<compilerarg value="-processorpath"/>
|
||||||
<compilerarg path="@{processorpath}:${empty.dir}"/>
|
<compilerarg path="@{processorpath}:${empty.dir}"/>
|
||||||
|
@ -339,6 +332,7 @@ is divided into following sections:
|
||||||
<path path="@{classpath}"/>
|
<path path="@{classpath}"/>
|
||||||
</classpath>
|
</classpath>
|
||||||
<compilerarg line="${endorsed.classpath.cmd.line.arg}"/>
|
<compilerarg line="${endorsed.classpath.cmd.line.arg}"/>
|
||||||
|
<compilerarg line="${javac.profile.cmd.line.arg}"/>
|
||||||
<compilerarg line="${javac.compilerargs}"/>
|
<compilerarg line="${javac.compilerargs}"/>
|
||||||
<customize/>
|
<customize/>
|
||||||
</javac>
|
</javac>
|
||||||
|
@ -471,7 +465,7 @@ is divided into following sections:
|
||||||
</fileset>
|
</fileset>
|
||||||
</union>
|
</union>
|
||||||
<taskdef classname="org.testng.TestNGAntTask" classpath="${run.test.classpath}" name="testng"/>
|
<taskdef classname="org.testng.TestNGAntTask" classpath="${run.test.classpath}" name="testng"/>
|
||||||
<testng classfilesetref="test.set" failureProperty="tests.failed" methods="${testng.methods.arg}" mode="${testng.mode}" outputdir="${build.test.results.dir}" suitename="EssentialsSpawn" testname="TestNG tests" workingDir="${work.dir}">
|
<testng classfilesetref="test.set" failureProperty="tests.failed" listeners="org.testng.reporters.VerboseReporter" methods="${testng.methods.arg}" mode="${testng.mode}" outputdir="${build.test.results.dir}" suitename="EssentialsSpawn" testname="TestNG tests" workingDir="${work.dir}">
|
||||||
<xmlfileset dir="${build.test.classes.dir}" includes="@{testincludes}"/>
|
<xmlfileset dir="${build.test.classes.dir}" includes="@{testincludes}"/>
|
||||||
<propertyset>
|
<propertyset>
|
||||||
<propertyref prefix="test-sys-prop."/>
|
<propertyref prefix="test-sys-prop."/>
|
||||||
|
@ -862,8 +856,8 @@ is divided into following sections:
|
||||||
</chainedmapper>
|
</chainedmapper>
|
||||||
</pathconvert>
|
</pathconvert>
|
||||||
<taskdef classname="org.netbeans.modules.java.j2seproject.copylibstask.CopyLibs" classpath="${libs.CopyLibs.classpath}" name="copylibs"/>
|
<taskdef classname="org.netbeans.modules.java.j2seproject.copylibstask.CopyLibs" classpath="${libs.CopyLibs.classpath}" name="copylibs"/>
|
||||||
<copylibs compress="${jar.compress}" index="${jar.index}" indexMetaInf="${jar.index.metainf}" jarfile="${dist.jar}" manifest="@{manifest}" rebase="${copylibs.rebase}" runtimeclasspath="${run.classpath.without.build.classes.dir}">
|
<copylibs compress="${jar.compress}" excludeFromCopy="${copylibs.excludes}" index="${jar.index}" indexMetaInf="${jar.index.metainf}" jarfile="${dist.jar}" manifest="@{manifest}" rebase="${copylibs.rebase}" runtimeclasspath="${run.classpath.without.build.classes.dir}">
|
||||||
<fileset dir="${build.classes.dir}"/>
|
<fileset dir="${build.classes.dir}" excludes="${dist.archive.excludes}"/>
|
||||||
<manifest>
|
<manifest>
|
||||||
<attribute name="Class-Path" value="${jar.classpath}"/>
|
<attribute name="Class-Path" value="${jar.classpath}"/>
|
||||||
<customize/>
|
<customize/>
|
||||||
|
@ -875,7 +869,7 @@ is divided into following sections:
|
||||||
<target name="-init-presetdef-jar">
|
<target name="-init-presetdef-jar">
|
||||||
<presetdef name="jar" uri="http://www.netbeans.org/ns/j2se-project/1">
|
<presetdef name="jar" uri="http://www.netbeans.org/ns/j2se-project/1">
|
||||||
<jar compress="${jar.compress}" index="${jar.index}" jarfile="${dist.jar}">
|
<jar compress="${jar.compress}" index="${jar.index}" jarfile="${dist.jar}">
|
||||||
<j2seproject1:fileset dir="${build.classes.dir}"/>
|
<j2seproject1:fileset dir="${build.classes.dir}" excludes="${dist.archive.excludes}"/>
|
||||||
</jar>
|
</jar>
|
||||||
</presetdef>
|
</presetdef>
|
||||||
</target>
|
</target>
|
||||||
|
@ -998,41 +992,25 @@ is divided into following sections:
|
||||||
<!-- Empty placeholder for easier customization. -->
|
<!-- Empty placeholder for easier customization. -->
|
||||||
<!-- You can override this target in the ../build.xml file. -->
|
<!-- You can override this target in the ../build.xml file. -->
|
||||||
</target>
|
</target>
|
||||||
<target depends="init,compile,-pre-pre-jar,-pre-jar" if="do.archive" name="-do-jar-without-manifest" unless="manifest.available-mkdist.available">
|
<target depends="init" if="do.archive" name="-do-jar-create-manifest" unless="manifest.available">
|
||||||
<j2seproject1:jar/>
|
|
||||||
</target>
|
|
||||||
<target depends="init,compile,-pre-pre-jar,-pre-jar" if="do.archive+manifest.available" name="-do-jar-with-manifest" unless="manifest.available+main.class-mkdist.available">
|
|
||||||
<j2seproject1:jar manifest="${manifest.file}"/>
|
|
||||||
</target>
|
|
||||||
<target depends="init,compile,-pre-pre-jar,-pre-jar" if="do.archive+manifest.available+main.class" name="-do-jar-with-mainclass" unless="manifest.available+main.class+mkdist.available">
|
|
||||||
<j2seproject1:jar manifest="${manifest.file}">
|
|
||||||
<j2seproject1:manifest>
|
|
||||||
<j2seproject1:attribute name="Main-Class" value="${main.class}"/>
|
|
||||||
</j2seproject1:manifest>
|
|
||||||
</j2seproject1:jar>
|
|
||||||
<echo level="info">To run this application from the command line without Ant, try:</echo>
|
|
||||||
<property location="${build.classes.dir}" name="build.classes.dir.resolved"/>
|
|
||||||
<property location="${dist.jar}" name="dist.jar.resolved"/>
|
|
||||||
<pathconvert property="run.classpath.with.dist.jar">
|
|
||||||
<path path="${run.classpath}"/>
|
|
||||||
<map from="${build.classes.dir.resolved}" to="${dist.jar.resolved}"/>
|
|
||||||
</pathconvert>
|
|
||||||
<echo level="info">java -cp "${run.classpath.with.dist.jar}" ${main.class}</echo>
|
|
||||||
</target>
|
|
||||||
<target depends="init" if="do.archive" name="-do-jar-with-libraries-create-manifest" unless="manifest.available">
|
|
||||||
<tempfile deleteonexit="true" destdir="${build.dir}" property="tmp.manifest.file"/>
|
<tempfile deleteonexit="true" destdir="${build.dir}" property="tmp.manifest.file"/>
|
||||||
<touch file="${tmp.manifest.file}" verbose="false"/>
|
<touch file="${tmp.manifest.file}" verbose="false"/>
|
||||||
</target>
|
</target>
|
||||||
<target depends="init" if="do.archive+manifest.available" name="-do-jar-with-libraries-copy-manifest">
|
<target depends="init" if="do.archive+manifest.available" name="-do-jar-copy-manifest">
|
||||||
<tempfile deleteonexit="true" destdir="${build.dir}" property="tmp.manifest.file"/>
|
<tempfile deleteonexit="true" destdir="${build.dir}" property="tmp.manifest.file"/>
|
||||||
<copy file="${manifest.file}" tofile="${tmp.manifest.file}"/>
|
<copy file="${manifest.file}" tofile="${tmp.manifest.file}"/>
|
||||||
</target>
|
</target>
|
||||||
<target depends="init,-do-jar-with-libraries-create-manifest,-do-jar-with-libraries-copy-manifest" if="do.archive+main.class.available" name="-do-jar-with-libraries-set-main">
|
<target depends="init,-do-jar-create-manifest,-do-jar-copy-manifest" if="do.archive+main.class.available" name="-do-jar-set-mainclass">
|
||||||
<manifest file="${tmp.manifest.file}" mode="update">
|
<manifest file="${tmp.manifest.file}" mode="update">
|
||||||
<attribute name="Main-Class" value="${main.class}"/>
|
<attribute name="Main-Class" value="${main.class}"/>
|
||||||
</manifest>
|
</manifest>
|
||||||
</target>
|
</target>
|
||||||
<target depends="init,-do-jar-with-libraries-create-manifest,-do-jar-with-libraries-copy-manifest" if="do.archive+splashscreen.available" name="-do-jar-with-libraries-set-splashscreen">
|
<target depends="init,-do-jar-create-manifest,-do-jar-copy-manifest" if="do.archive+profile.available" name="-do-jar-set-profile">
|
||||||
|
<manifest file="${tmp.manifest.file}" mode="update">
|
||||||
|
<attribute name="Profile" value="${javac.profile}"/>
|
||||||
|
</manifest>
|
||||||
|
</target>
|
||||||
|
<target depends="init,-do-jar-create-manifest,-do-jar-copy-manifest" if="do.archive+splashscreen.available" name="-do-jar-set-splashscreen">
|
||||||
<basename file="${application.splash}" property="splashscreen.basename"/>
|
<basename file="${application.splash}" property="splashscreen.basename"/>
|
||||||
<mkdir dir="${build.classes.dir}/META-INF"/>
|
<mkdir dir="${build.classes.dir}/META-INF"/>
|
||||||
<copy failonerror="false" file="${application.splash}" todir="${build.classes.dir}/META-INF"/>
|
<copy failonerror="false" file="${application.splash}" todir="${build.classes.dir}/META-INF"/>
|
||||||
|
@ -1040,23 +1018,41 @@ is divided into following sections:
|
||||||
<attribute name="SplashScreen-Image" value="META-INF/${splashscreen.basename}"/>
|
<attribute name="SplashScreen-Image" value="META-INF/${splashscreen.basename}"/>
|
||||||
</manifest>
|
</manifest>
|
||||||
</target>
|
</target>
|
||||||
<target depends="init,-init-macrodef-copylibs,compile,-pre-pre-jar,-pre-jar,-do-jar-with-libraries-create-manifest,-do-jar-with-libraries-copy-manifest,-do-jar-with-libraries-set-main,-do-jar-with-libraries-set-splashscreen" if="do.mkdist" name="-do-jar-with-libraries-pack">
|
<target depends="init,-init-macrodef-copylibs,compile,-pre-pre-jar,-pre-jar,-do-jar-create-manifest,-do-jar-copy-manifest,-do-jar-set-mainclass,-do-jar-set-profile,-do-jar-set-splashscreen" if="do.mkdist" name="-do-jar-copylibs">
|
||||||
<j2seproject3:copylibs manifest="${tmp.manifest.file}"/>
|
<j2seproject3:copylibs manifest="${tmp.manifest.file}"/>
|
||||||
<echo level="info">To run this application from the command line without Ant, try:</echo>
|
<echo level="info">To run this application from the command line without Ant, try:</echo>
|
||||||
<property location="${dist.jar}" name="dist.jar.resolved"/>
|
<property location="${dist.jar}" name="dist.jar.resolved"/>
|
||||||
<echo level="info">java -jar "${dist.jar.resolved}"</echo>
|
<echo level="info">java -jar "${dist.jar.resolved}"</echo>
|
||||||
</target>
|
</target>
|
||||||
<target depends="-do-jar-with-libraries-pack" if="do.archive" name="-do-jar-with-libraries-delete-manifest">
|
<target depends="init,compile,-pre-pre-jar,-pre-jar,-do-jar-create-manifest,-do-jar-copy-manifest,-do-jar-set-mainclass,-do-jar-set-profile,-do-jar-set-splashscreen" if="do.archive" name="-do-jar-jar" unless="do.mkdist">
|
||||||
|
<j2seproject1:jar manifest="${tmp.manifest.file}"/>
|
||||||
|
<property location="${build.classes.dir}" name="build.classes.dir.resolved"/>
|
||||||
|
<property location="${dist.jar}" name="dist.jar.resolved"/>
|
||||||
|
<pathconvert property="run.classpath.with.dist.jar">
|
||||||
|
<path path="${run.classpath}"/>
|
||||||
|
<map from="${build.classes.dir.resolved}" to="${dist.jar.resolved}"/>
|
||||||
|
</pathconvert>
|
||||||
|
<condition else="" property="jar.usage.message" value="To run this application from the command line without Ant, try:${line.separator}${platform.java} -cp ${run.classpath.with.dist.jar} ${main.class}">
|
||||||
|
<isset property="main.class.available"/>
|
||||||
|
</condition>
|
||||||
|
<condition else="debug" property="jar.usage.level" value="info">
|
||||||
|
<isset property="main.class.available"/>
|
||||||
|
</condition>
|
||||||
|
<echo level="${jar.usage.level}" message="${jar.usage.message}"/>
|
||||||
|
</target>
|
||||||
|
<target depends="-do-jar-copylibs" if="do.archive" name="-do-jar-delete-manifest">
|
||||||
<delete>
|
<delete>
|
||||||
<fileset file="${tmp.manifest.file}"/>
|
<fileset file="${tmp.manifest.file}"/>
|
||||||
</delete>
|
</delete>
|
||||||
</target>
|
</target>
|
||||||
<target depends="init,compile,-pre-pre-jar,-pre-jar,-do-jar-with-libraries-create-manifest,-do-jar-with-libraries-copy-manifest,-do-jar-with-libraries-set-main,-do-jar-with-libraries-set-splashscreen,-do-jar-with-libraries-pack,-do-jar-with-libraries-delete-manifest" name="-do-jar-with-libraries"/>
|
<target depends="init,compile,-pre-pre-jar,-pre-jar,-do-jar-create-manifest,-do-jar-copy-manifest,-do-jar-set-mainclass,-do-jar-set-profile,-do-jar-set-splashscreen,-do-jar-jar,-do-jar-delete-manifest" name="-do-jar-without-libraries"/>
|
||||||
|
<target depends="init,compile,-pre-pre-jar,-pre-jar,-do-jar-create-manifest,-do-jar-copy-manifest,-do-jar-set-mainclass,-do-jar-set-profile,-do-jar-set-splashscreen,-do-jar-copylibs,-do-jar-delete-manifest" name="-do-jar-with-libraries"/>
|
||||||
<target name="-post-jar">
|
<target name="-post-jar">
|
||||||
<!-- Empty placeholder for easier customization. -->
|
<!-- Empty placeholder for easier customization. -->
|
||||||
<!-- You can override this target in the ../build.xml file. -->
|
<!-- You can override this target in the ../build.xml file. -->
|
||||||
</target>
|
</target>
|
||||||
<target depends="init,compile,-pre-jar,-do-jar-with-manifest,-do-jar-without-manifest,-do-jar-with-mainclass,-do-jar-with-libraries,-post-jar" description="Build JAR." name="jar"/>
|
<target depends="init,compile,-pre-jar,-do-jar-without-libraries,-do-jar-with-libraries,-post-jar" name="-do-jar"/>
|
||||||
|
<target depends="init,compile,-pre-jar,-do-jar,-post-jar" description="Build JAR." name="jar"/>
|
||||||
<!--
|
<!--
|
||||||
=================
|
=================
|
||||||
EXECUTION SECTION
|
EXECUTION SECTION
|
||||||
|
|
|
@ -4,5 +4,5 @@ build.xml.stylesheet.CRC32=28e38971@1.38.2.45
|
||||||
# This file is used by a NetBeans-based IDE to track changes in generated files such as build-impl.xml.
|
# This file is used by a NetBeans-based IDE to track changes in generated files such as build-impl.xml.
|
||||||
# Do not edit this file. You may delete it but then the IDE will never regenerate such files for you.
|
# Do not edit this file. You may delete it but then the IDE will never regenerate such files for you.
|
||||||
nbproject/build-impl.xml.data.CRC32=e7b96939
|
nbproject/build-impl.xml.data.CRC32=e7b96939
|
||||||
nbproject/build-impl.xml.script.CRC32=1d8d66ff
|
nbproject/build-impl.xml.script.CRC32=6051a009
|
||||||
nbproject/build-impl.xml.stylesheet.CRC32=c6d2a60f@1.56.1.46
|
nbproject/build-impl.xml.stylesheet.CRC32=5a01deb7@1.68.1.46
|
||||||
|
|
|
@ -24,9 +24,9 @@ import org.bukkit.event.player.PlayerTeleportEvent.TeleportCause;
|
||||||
|
|
||||||
public class EssentialsSpawnPlayerListener implements Listener
|
public class EssentialsSpawnPlayerListener implements Listener
|
||||||
{
|
{
|
||||||
|
private static final Logger LOGGER = Bukkit.getLogger();
|
||||||
private final transient IEssentials ess;
|
private final transient IEssentials ess;
|
||||||
private final transient SpawnStorage spawns;
|
private final transient SpawnStorage spawns;
|
||||||
private static final Logger LOGGER = Bukkit.getLogger();
|
|
||||||
|
|
||||||
public EssentialsSpawnPlayerListener(final IEssentials ess, final SpawnStorage spawns)
|
public EssentialsSpawnPlayerListener(final IEssentials ess, final SpawnStorage spawns)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue