mirror of
https://github.com/EssentialsX/Essentials.git
synced 2024-12-28 12:07:38 +01:00
Minor comment updates.
This commit is contained in:
parent
ef01332114
commit
5225fb22f8
@ -18,7 +18,7 @@ public class Commandmail extends EssentialsCommand
|
|||||||
super("mail");
|
super("mail");
|
||||||
}
|
}
|
||||||
|
|
||||||
//TODO: Tidy this up
|
//TODO: Tidy this up / TL these errors.
|
||||||
@Override
|
@Override
|
||||||
public void run(final Server server, final User user, final String commandLabel, final String[] args) throws Exception
|
public void run(final Server server, final User user, final String commandLabel, final String[] args) throws Exception
|
||||||
{
|
{
|
||||||
|
@ -22,7 +22,7 @@ public class Commandpay extends EssentialsCommand
|
|||||||
throw new NotEnoughArgumentsException();
|
throw new NotEnoughArgumentsException();
|
||||||
}
|
}
|
||||||
|
|
||||||
//TODO: TL this
|
//TODO: TL this.
|
||||||
if (args[0].trim().length() < 2)
|
if (args[0].trim().length() < 2)
|
||||||
{
|
{
|
||||||
throw new NotEnoughArgumentsException("You need to specify a player to pay.");
|
throw new NotEnoughArgumentsException("You need to specify a player to pay.");
|
||||||
|
@ -52,7 +52,7 @@ public class Commandtp extends EssentialsCommand
|
|||||||
final double z = args[3].startsWith("~") ? target2.getLocation().getZ() + Integer.parseInt(args[3].substring(1)) : Integer.parseInt(args[3]);
|
final double z = args[3].startsWith("~") ? target2.getLocation().getZ() + Integer.parseInt(args[3].substring(1)) : Integer.parseInt(args[3]);
|
||||||
if (x > 30000000 || y > 30000000 || z > 30000000 || x < -30000000 || y < -30000000 || z < -30000000)
|
if (x > 30000000 || y > 30000000 || z > 30000000 || x < -30000000 || y < -30000000 || z < -30000000)
|
||||||
{
|
{
|
||||||
throw new NotEnoughArgumentsException("Value of coordinates cannot be over 30000000"); //todo: I18n
|
throw new NotEnoughArgumentsException("Value of coordinates cannot be over 30000000"); //TODO: I18n
|
||||||
}
|
}
|
||||||
final Location location = new Location(target2.getWorld(), x, y, z);
|
final Location location = new Location(target2.getWorld(), x, y, z);
|
||||||
if (!target2.isTeleportEnabled())
|
if (!target2.isTeleportEnabled())
|
||||||
@ -113,7 +113,7 @@ public class Commandtp extends EssentialsCommand
|
|||||||
final double z = args[3].startsWith("~") ? target.getLocation().getZ() + Integer.parseInt(args[3].substring(1)) : Integer.parseInt(args[3]);
|
final double z = args[3].startsWith("~") ? target.getLocation().getZ() + Integer.parseInt(args[3].substring(1)) : Integer.parseInt(args[3]);
|
||||||
if (x > 30000000 || y > 30000000 || z > 30000000 || x < -30000000 || y < -30000000 || z < -30000000)
|
if (x > 30000000 || y > 30000000 || z > 30000000 || x < -30000000 || y < -30000000 || z < -30000000)
|
||||||
{
|
{
|
||||||
throw new NotEnoughArgumentsException("Value of coordinates cannot be over 30000000"); //todo: I18n
|
throw new NotEnoughArgumentsException("Value of coordinates cannot be over 30000000"); //TODO: I18n
|
||||||
}
|
}
|
||||||
final Location location = new Location(target.getWorld(), x, y, z);
|
final Location location = new Location(target.getWorld(), x, y, z);
|
||||||
target.getTeleport().now(location, false, TeleportCause.COMMAND);
|
target.getTeleport().now(location, false, TeleportCause.COMMAND);
|
||||||
|
@ -38,7 +38,7 @@ public class Commandtppos extends EssentialsCommand
|
|||||||
}
|
}
|
||||||
if (x > 30000000 || y > 30000000 || z > 30000000 || x < -30000000 || y < -30000000 || z < -30000000)
|
if (x > 30000000 || y > 30000000 || z > 30000000 || x < -30000000 || y < -30000000 || z < -30000000)
|
||||||
{
|
{
|
||||||
throw new NotEnoughArgumentsException("Value of coordinates cannot be over 30000000"); //todo: I18n
|
throw new NotEnoughArgumentsException("Value of coordinates cannot be over 30000000"); //TODO: I18n
|
||||||
}
|
}
|
||||||
final Trade charge = new Trade(this.getName(), ess);
|
final Trade charge = new Trade(this.getName(), ess);
|
||||||
charge.isAffordableFor(user);
|
charge.isAffordableFor(user);
|
||||||
@ -70,7 +70,7 @@ public class Commandtppos extends EssentialsCommand
|
|||||||
}
|
}
|
||||||
if (x > 30000000 || y > 30000000 || z > 30000000 || x < -30000000 || y < -30000000 || z < -30000000)
|
if (x > 30000000 || y > 30000000 || z > 30000000 || x < -30000000 || y < -30000000 || z < -30000000)
|
||||||
{
|
{
|
||||||
throw new NotEnoughArgumentsException("Value of coordinates cannot be over 30000000"); //todo: I18n
|
throw new NotEnoughArgumentsException("Value of coordinates cannot be over 30000000"); //TODO: I18n
|
||||||
}
|
}
|
||||||
sender.sendMessage(_("teleporting"));
|
sender.sendMessage(_("teleporting"));
|
||||||
user.sendMessage(_("teleporting"));
|
user.sendMessage(_("teleporting"));
|
||||||
|
@ -29,7 +29,7 @@ public class SignBuy extends EssentialsSign
|
|||||||
charge.isAffordableFor(player);
|
charge.isAffordableFor(player);
|
||||||
if (!items.pay(player, false))
|
if (!items.pay(player, false))
|
||||||
{
|
{
|
||||||
throw new ChargeException("Inventory full");
|
throw new ChargeException("Inventory full"); //TODO: TL
|
||||||
}
|
}
|
||||||
charge.charge(player);
|
charge.charge(player);
|
||||||
Trade.log("Sign", "Buy", "Interact", username, charge, username, items, sign.getBlock().getLocation(), ess);
|
Trade.log("Sign", "Buy", "Interact", username, charge, username, items, sign.getBlock().getLocation(), ess);
|
||||||
|
@ -206,7 +206,7 @@ player-commands:
|
|||||||
# Note: All items MUST be followed by a quantity!
|
# Note: All items MUST be followed by a quantity!
|
||||||
# All kit names should be lower case, and will be treated as lower in permissions/costs.
|
# All kit names should be lower case, and will be treated as lower in permissions/costs.
|
||||||
# Syntax: - itemID[:DataValue/Durability] Amount [Enchantment:Level].. [itemmeta:value]...
|
# Syntax: - itemID[:DataValue/Durability] Amount [Enchantment:Level].. [itemmeta:value]...
|
||||||
# For Item meta information visit http://wiki.ess3.net/wiki/command_reference/ICheat#itemmeta
|
# For Item meta information visit http://wiki.ess3.net/wiki/Command_Reference/ICheat#itemmeta
|
||||||
# 'delay' refers to the cooldown between how often you can use each kit, measured in seconds.
|
# 'delay' refers to the cooldown between how often you can use each kit, measured in seconds.
|
||||||
# For more information, visit http://wiki.ess3.net/wiki/Command_Reference/ICheat#kits
|
# For more information, visit http://wiki.ess3.net/wiki/Command_Reference/ICheat#kits
|
||||||
kits:
|
kits:
|
||||||
|
@ -121,7 +121,7 @@ commands:
|
|||||||
aliases: [efireball,fireskull,efireskull,fireentity,efireentity]
|
aliases: [efireball,fireskull,efireskull,fireentity,efireentity]
|
||||||
firework:
|
firework:
|
||||||
description: Allows you to modify a stack of fireworks
|
description: Allows you to modify a stack of fireworks
|
||||||
usage: /<command> [<meta param>|power [amount]|clear]
|
usage: /<command> <<meta param>|power [amount]|clear|fire>
|
||||||
aliases: [efirework]
|
aliases: [efirework]
|
||||||
gamemode:
|
gamemode:
|
||||||
description: Change player gamemode.
|
description: Change player gamemode.
|
||||||
|
Loading…
Reference in New Issue
Block a user