mirror of
https://github.com/essentials/Essentials.git
synced 2025-08-13 18:14:38 +02:00
Fix spelling mistakes
This commit is contained in:
2
Essentials/src/net/ess3/Kits.java
Normal file → Executable file
2
Essentials/src/net/ess3/Kits.java
Normal file → Executable file
@@ -90,7 +90,7 @@ public class Kits extends AsyncStorageObjectHolder<net.ess3.settings.Kits> imple
|
|||||||
else if (lastTime > time.getTimeInMillis())
|
else if (lastTime > time.getTimeInMillis())
|
||||||
{
|
{
|
||||||
// This is to make sure time didn't get messed up on last kit use.
|
// This is to make sure time didn't get messed up on last kit use.
|
||||||
// If this happens, let's give the user the benifit of the doubt.
|
// If this happens, let's give the user the benefit of the doubt.
|
||||||
user.setTimestamp(TimestampType.KIT, time.getTimeInMillis());
|
user.setTimestamp(TimestampType.KIT, time.getTimeInMillis());
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
4
Essentials/src/net/ess3/api/Economy.java
Normal file → Executable file
4
Essentials/src/net/ess3/api/Economy.java
Normal file → Executable file
@@ -64,10 +64,10 @@ public final class Economy
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Substracts money from the balance of a user
|
* Subtracts money from the balance of a user
|
||||||
*
|
*
|
||||||
* @param name Name of the user
|
* @param name Name of the user
|
||||||
* @param amount The money you want to substract
|
* @param amount The money you want to subtract
|
||||||
* @throws UserDoesNotExistException If a user by that name does not exists
|
* @throws UserDoesNotExistException If a user by that name does not exists
|
||||||
* @throws NoLoanPermittedException If the user is not allowed to have a negative balance
|
* @throws NoLoanPermittedException If the user is not allowed to have a negative balance
|
||||||
*/
|
*/
|
||||||
|
2
Essentials/src/net/ess3/api/IUser.java
Normal file → Executable file
2
Essentials/src/net/ess3/api/IUser.java
Normal file → Executable file
@@ -40,7 +40,7 @@ public interface IUser extends OfflinePlayer, CommandSender, IStorageObjectHolde
|
|||||||
|
|
||||||
void setMoney(double value);
|
void setMoney(double value);
|
||||||
|
|
||||||
void payUser(final IUser reciever, final double value) throws Exception;
|
void payUser(final IUser receiver, final double value) throws Exception;
|
||||||
|
|
||||||
void setLastLocation();
|
void setLastLocation();
|
||||||
|
|
||||||
|
6
Essentials/src/net/ess3/commands/Commandfirework.java
Normal file → Executable file
6
Essentials/src/net/ess3/commands/Commandfirework.java
Normal file → Executable file
@@ -18,7 +18,7 @@ import org.bukkit.inventory.meta.FireworkMeta;
|
|||||||
import org.bukkit.util.Vector;
|
import org.bukkit.util.Vector;
|
||||||
|
|
||||||
|
|
||||||
//This command has quite a complicated syntax, in theory it has 4 seperate syntaxes which are all variable:
|
//This command has quite a complicated syntax, in theory it has 4 separate syntaxes which are all variable:
|
||||||
//
|
//
|
||||||
//1: /firework clear - This clears all of the effects on a firework stack
|
//1: /firework clear - This clears all of the effects on a firework stack
|
||||||
//
|
//
|
||||||
@@ -118,7 +118,7 @@ public class Commandfirework extends EssentialsCommand
|
|||||||
}
|
}
|
||||||
catch (Exception e)
|
catch (Exception e)
|
||||||
{
|
{
|
||||||
user.sendMessage(_("Firework parameters: color:<color> [fade:<color>] [shape:<shape>] [effect:<effect>]nTo use multiple colors/effects, seperate values with commas: red,blue,pinknShapes: star, ball, large, creeper, burst Effects: trail, twinkle."));
|
user.sendMessage(_("Firework parameters: color:<color> [fade:<color>] [shape:<shape>] [effect:<effect>]nTo use multiple colors/effects, separate values with commas: red,blue,pinknShapes: star, ball, large, creeper, burst Effects: trail, twinkle."));
|
||||||
throw e;
|
throw e;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -136,7 +136,7 @@ public class Commandfirework extends EssentialsCommand
|
|||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
user.sendMessage(_("Firework parameters: color:<color> [fade:<color>] [shape:<shape>] [effect:<effect>]nTo use multiple colors/effects, seperate values with commas: red,blue,pinknShapes: star, ball, large, creeper, burst Effects: trail, twinkle."));
|
user.sendMessage(_("Firework parameters: color:<color> [fade:<color>] [shape:<shape>] [effect:<effect>]nTo use multiple colors/effects, separate values with commas: red,blue,pinknShapes: star, ball, large, creeper, burst Effects: trail, twinkle."));
|
||||||
throw new Exception(_("Invalid firework charge parameters inserted, must set a color first."));
|
throw new Exception(_("Invalid firework charge parameters inserted, must set a color first."));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
2
Essentials/src/net/ess3/commands/EssentialsCommandHandler.java
Normal file → Executable file
2
Essentials/src/net/ess3/commands/EssentialsCommandHandler.java
Normal file → Executable file
@@ -89,7 +89,7 @@ public class EssentialsCommandHandler implements ICommandHandler, TabExecutor
|
|||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
final String commandName = command.getName().toLowerCase(Locale.ENGLISH); // TODO: Isn't this just the commandLable
|
final String commandName = command.getName().toLowerCase(Locale.ENGLISH); // TODO: Isn't this just the commandLabel
|
||||||
IEssentialsCommand cmd = commands.get(commandName);
|
IEssentialsCommand cmd = commands.get(commandName);
|
||||||
if (cmd == null)
|
if (cmd == null)
|
||||||
{
|
{
|
||||||
|
2
Essentials/src/net/ess3/craftbukkit/SetExpFix.java
Normal file → Executable file
2
Essentials/src/net/ess3/craftbukkit/SetExpFix.java
Normal file → Executable file
@@ -17,7 +17,7 @@ public class SetExpFix
|
|||||||
player.setLevel(0);
|
player.setLevel(0);
|
||||||
player.setTotalExperience(0);
|
player.setTotalExperience(0);
|
||||||
|
|
||||||
//This following code is technically redundant now, as bukkit now calulcates levels more or less correctly
|
//This following code is technically redundant now, as bukkit now calculates levels more or less correctly
|
||||||
//At larger numbers however... player.getExp(3000), only seems to give 2999, putting the below calculations off.
|
//At larger numbers however... player.getExp(3000), only seems to give 2999, putting the below calculations off.
|
||||||
int amount = exp;
|
int amount = exp;
|
||||||
while (amount > 0)
|
while (amount > 0)
|
||||||
|
4
Essentials/src/net/ess3/economy/Economy.java
Normal file → Executable file
4
Essentials/src/net/ess3/economy/Economy.java
Normal file → Executable file
@@ -28,10 +28,10 @@ public class Economy implements IEconomy
|
|||||||
return balance;
|
return balance;
|
||||||
}
|
}
|
||||||
|
|
||||||
private void setNPCBalance(String name, double balance, boolean checkExistance) throws UserDoesNotExistException
|
private void setNPCBalance(String name, double balance, boolean checkExistence) throws UserDoesNotExistException
|
||||||
{
|
{
|
||||||
Map<String, Double> balances = npcs.getData().getBalances();
|
Map<String, Double> balances = npcs.getData().getBalances();
|
||||||
if (checkExistance && !balances.containsKey(name.toLowerCase(Locale.ENGLISH)))
|
if (checkExistence && !balances.containsKey(name.toLowerCase(Locale.ENGLISH)))
|
||||||
{
|
{
|
||||||
throw new UserDoesNotExistException(name);
|
throw new UserDoesNotExistException(name);
|
||||||
}
|
}
|
||||||
|
2
Essentials/src/net/ess3/listener/EssentialsPluginListener.java
Normal file → Executable file
2
Essentials/src/net/ess3/listener/EssentialsPluginListener.java
Normal file → Executable file
@@ -48,7 +48,7 @@ public class EssentialsPluginListener implements Listener, IReload
|
|||||||
checkGroups();
|
checkGroups();
|
||||||
ess.getPlugin().onPluginDisable(event.getPlugin());
|
ess.getPlugin().onPluginDisable(event.getPlugin());
|
||||||
ess.getCommandHandler().removePlugin(event.getPlugin());
|
ess.getCommandHandler().removePlugin(event.getPlugin());
|
||||||
// Check to see if the plugin thats being disabled is the one we are using
|
// Check to see if the plugin that's being disabled is the one we are using
|
||||||
if (Methods.hasMethod() && Methods.checkDisabled(event.getPlugin()))
|
if (Methods.hasMethod() && Methods.checkDisabled(event.getPlugin()))
|
||||||
{
|
{
|
||||||
Methods.reset();
|
Methods.reset();
|
||||||
|
2
Essentials/src/net/ess3/settings/SpawnsHolder.java
Normal file → Executable file
2
Essentials/src/net/ess3/settings/SpawnsHolder.java
Normal file → Executable file
@@ -37,7 +37,7 @@ public class SpawnsHolder extends AsyncStorageObjectHolder<Spawns>
|
|||||||
* Sets a spawn location
|
* Sets a spawn location
|
||||||
*
|
*
|
||||||
* @param loc - Location you want to set as spawn
|
* @param loc - Location you want to set as spawn
|
||||||
* @param group - Group to save it undr in the config
|
* @param group - Group to save it under in the config
|
||||||
*/
|
*/
|
||||||
public void setSpawn(final Location loc, final String group)
|
public void setSpawn(final Location loc, final String group)
|
||||||
{
|
{
|
||||||
|
2
Essentials/src/net/ess3/settings/commands/Help.java
Normal file → Executable file
2
Essentials/src/net/ess3/settings/commands/Help.java
Normal file → Executable file
@@ -15,7 +15,7 @@ public class Help implements StorageObject
|
|||||||
@Comment(
|
@Comment(
|
||||||
"Hide plugins which don't give a permission in their plugin.yml for each command.\n"
|
"Hide plugins which don't give a permission in their plugin.yml for each command.\n"
|
||||||
+ "You can override a true value here for a single plugin by adding a permission to a user/group.\n"
|
+ "You can override a true value here for a single plugin by adding a permission to a user/group.\n"
|
||||||
+ "The individual permission is: essentials.help.<plugin>, anyone with essentials.* or '*' will see all help this setting reguardless.\n"
|
+ "The individual permission is: essentials.help.<plugin>, anyone with essentials.* or '*' will see all help this setting regardless.\n"
|
||||||
+ "You can use negative permissions to remove access to just a single plugins help if the following is enabled.")
|
+ "You can use negative permissions to remove access to just a single plugins help if the following is enabled.")
|
||||||
private boolean hidePermissionlessCommands = true;
|
private boolean hidePermissionlessCommands = true;
|
||||||
}
|
}
|
||||||
|
8
Essentials/src/net/ess3/user/User.java
Normal file → Executable file
8
Essentials/src/net/ess3/user/User.java
Normal file → Executable file
@@ -129,7 +129,7 @@ public class User extends UserBase implements IUser
|
|||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void payUser(final IUser reciever, final double value) throws Exception
|
public void payUser(final IUser receiver, final double value) throws Exception
|
||||||
{
|
{
|
||||||
if (value == 0)
|
if (value == 0)
|
||||||
{
|
{
|
||||||
@@ -138,9 +138,9 @@ public class User extends UserBase implements IUser
|
|||||||
if (canAfford(value))
|
if (canAfford(value))
|
||||||
{
|
{
|
||||||
setMoney(getMoney() - value);
|
setMoney(getMoney() - value);
|
||||||
reciever.setMoney(reciever.getMoney() + value);
|
receiver.setMoney(receiver.getMoney() + value);
|
||||||
sendMessage(_("{0} has been sent to {1}.", FormatUtil.displayCurrency(value, ess), reciever.getPlayer().getDisplayName()));
|
sendMessage(_("{0} has been sent to {1}.", FormatUtil.displayCurrency(value, ess), receiver.getPlayer().getDisplayName()));
|
||||||
reciever.sendMessage(_("{0} has been received from {1}.", FormatUtil.displayCurrency(value, ess), getPlayer().getDisplayName()));
|
receiver.sendMessage(_("{0} has been received from {1}.", FormatUtil.displayCurrency(value, ess), getPlayer().getDisplayName()));
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
2
Essentials/src/net/ess3/user/UserBase.java
Normal file → Executable file
2
Essentials/src/net/ess3/user/UserBase.java
Normal file → Executable file
@@ -315,7 +315,7 @@ public abstract class UserBase extends AsyncStorageObjectHolder<UserData> implem
|
|||||||
for (Location location : worldHomes)
|
for (Location location : worldHomes)
|
||||||
{
|
{
|
||||||
final double d = loc.distanceSquared(location);
|
final double d = loc.distanceSquared(location);
|
||||||
if (d < distance) // TODO: Shouldnt this just use Double.isInfinite(v); rather than create a new Double of maxval?
|
if (d < distance) // TODO: Shouldn't this just use Double.isInfinite(v); rather than create a new Double of maxval?
|
||||||
{
|
{
|
||||||
target = location;
|
target = location;
|
||||||
distance = d;
|
distance = d;
|
||||||
|
2
Essentials/src/net/ess3/utils/DescParseTickFormat.java
Normal file → Executable file
2
Essentials/src/net/ess3/utils/DescParseTickFormat.java
Normal file → Executable file
@@ -279,7 +279,7 @@ public final class DescParseTickFormat
|
|||||||
// How many seconds on the last day?
|
// How many seconds on the last day?
|
||||||
final long seconds = (long)Math.floor(dticks / ticksPerSecond);
|
final long seconds = (long)Math.floor(dticks / ticksPerSecond);
|
||||||
|
|
||||||
// Now we create an english GMT calendar (We wan't no daylight savings)
|
// Now we create an english GMT calendar (We want no daylight savings)
|
||||||
final Calendar cal = Calendar.getInstance(TimeZone.getTimeZone("GMT"), Locale.ENGLISH);
|
final Calendar cal = Calendar.getInstance(TimeZone.getTimeZone("GMT"), Locale.ENGLISH);
|
||||||
cal.setLenient(true);
|
cal.setLenient(true);
|
||||||
|
|
||||||
|
4
Essentials/src/oldTranslations/README
Normal file → Executable file
4
Essentials/src/oldTranslations/README
Normal file → Executable file
@@ -1,3 +1,3 @@
|
|||||||
These translation files have partially translated messages, based off the old early essentials colour scheme.
|
These translation files have partially translated messages, based off the old early essentials colour scheme.
|
||||||
All the commands need a cleanup, and the new colour scheme implementing throught.
|
All the commands need a cleanup, and the new colour scheme implementing throughout.
|
||||||
Only once cleanup is done should retranslations begin.
|
Only once cleanup is done should re-translations begin.
|
4
Essentials2Compat/src/com/earth2me/essentials/Economy.java
Normal file → Executable file
4
Essentials2Compat/src/com/earth2me/essentials/Economy.java
Normal file → Executable file
@@ -68,10 +68,10 @@ public final class Economy
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Substracts money from the balance of a user
|
* Subtracts money from the balance of a user
|
||||||
*
|
*
|
||||||
* @param name Name of the user
|
* @param name Name of the user
|
||||||
* @param amount The money you want to substract
|
* @param amount The money you want to subtract
|
||||||
* @throws UserDoesNotExistException If a user by that name does not exists
|
* @throws UserDoesNotExistException If a user by that name does not exists
|
||||||
* @throws NoLoanPermittedException If the user is not allowed to have a negative balance
|
* @throws NoLoanPermittedException If the user is not allowed to have a negative balance
|
||||||
*/
|
*/
|
||||||
|
2
EssentialsProtect/src/net/ess3/protect/EssentialsProtect.java
Normal file → Executable file
2
EssentialsProtect/src/net/ess3/protect/EssentialsProtect.java
Normal file → Executable file
@@ -45,7 +45,7 @@ public class EssentialsProtect extends JavaPlugin implements IProtect
|
|||||||
{
|
{
|
||||||
player.sendMessage("Essentials Protect is in emergency mode. Check your log for errors."); //TODO: tl this
|
player.sendMessage("Essentials Protect is in emergency mode. Check your log for errors."); //TODO: tl this
|
||||||
}
|
}
|
||||||
LOGGER.log(Level.SEVERE, "Essentials not installed or failed to load. Essenials Protect is in emergency mode now."); //TODO: tl this
|
LOGGER.log(Level.SEVERE, "Essentials not installed or failed to load. Essentials Protect is in emergency mode now."); //TODO: tl this
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
2
EssentialsSigns/src/net/ess3/signs/SignConfig.java
Normal file → Executable file
2
EssentialsSigns/src/net/ess3/signs/SignConfig.java
Normal file → Executable file
@@ -26,7 +26,7 @@ public class SignConfig implements StorageObject
|
|||||||
@Comment(
|
@Comment(
|
||||||
"How many times per second can Essentials signs be interacted with.\n"
|
"How many times per second can Essentials signs be interacted with.\n"
|
||||||
+ "Values should be between 1-20, 20 being virtually no lag protection.\n"
|
+ "Values should be between 1-20, 20 being virtually no lag protection.\n"
|
||||||
+ "Lower numbers will reduce the possiblity of lag, but may annoy players.")
|
+ "Lower numbers will reduce the possibility of lag, but may annoy players.")
|
||||||
private int signUsesPerSecond = 4;
|
private int signUsesPerSecond = 4;
|
||||||
|
|
||||||
public int getSignUsePerSecond()
|
public int getSignUsePerSecond()
|
||||||
|
2
EssentialsUpdate/src/net/ess3/update/tasks/InstallModule.java
Normal file → Executable file
2
EssentialsUpdate/src/net/ess3/update/tasks/InstallModule.java
Normal file → Executable file
@@ -54,7 +54,7 @@ public class InstallModule implements Runnable, Task
|
|||||||
catch (Exception ex)
|
catch (Exception ex)
|
||||||
{
|
{
|
||||||
Bukkit.getLogger().log(Level.SEVERE, "Failed to download module " + moduleName + " to " + fileName, ex);
|
Bukkit.getLogger().log(Level.SEVERE, "Failed to download module " + moduleName + " to " + fileName, ex);
|
||||||
listener.onWorkAbort("An error occured, please check your server log.");
|
listener.onWorkAbort("An error occurred, please check your server log.");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user