summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorsnowleo <schneeleo@gmail.com>2011-12-04 22:09:36 +0100
committersnowleo <schneeleo@gmail.com>2011-12-04 22:09:36 +0100
commit8417c5e1f06a51a0b2dd305902465c4a02c88b80 (patch)
tree752102d1eb78d86d7ecb10498a1a32921f2a5b4d
parentec3586c08c3462b4d6d1ed6b71115c55ddd8e61d (diff)
downloadEssentials-8417c5e1f06a51a0b2dd305902465c4a02c88b80.tar
Essentials-8417c5e1f06a51a0b2dd305902465c4a02c88b80.tar.gz
Essentials-8417c5e1f06a51a0b2dd305902465c4a02c88b80.tar.lz
Essentials-8417c5e1f06a51a0b2dd305902465c4a02c88b80.tar.xz
Essentials-8417c5e1f06a51a0b2dd305902465c4a02c88b80.zip
New permission essentials.spawn.others
-rw-r--r--EssentialsSpawn/src/com/earth2me/essentials/spawn/Commandspawn.java8
1 files changed, 4 insertions, 4 deletions
diff --git a/EssentialsSpawn/src/com/earth2me/essentials/spawn/Commandspawn.java b/EssentialsSpawn/src/com/earth2me/essentials/spawn/Commandspawn.java
index e38de76cc..635d782f2 100644
--- a/EssentialsSpawn/src/com/earth2me/essentials/spawn/Commandspawn.java
+++ b/EssentialsSpawn/src/com/earth2me/essentials/spawn/Commandspawn.java
@@ -21,11 +21,11 @@ public class Commandspawn extends EssentialsCommand
{
final Trade charge = new Trade(this.getName(), ess);
charge.isAffordableFor(user);
- if (args.length > 0 && user.isAuthorized("essentials.spawn.other"))
+ if (args.length > 0 && user.isAuthorized("essentials.spawn.others"))
{
- User otherUser = getPlayer(server, args, 0);
+ final User otherUser = getPlayer(server, args, 0);
otherUser.getTeleport().respawn(ess.getSpawn(), charge);
- if (otherUser != user)
+ if (!otherUser.equals(user))
{
otherUser.sendMessage(_("teleportAtoB", user.getDisplayName(), "spawn"));
user.sendMessage(_("teleporting"));
@@ -44,7 +44,7 @@ public class Commandspawn extends EssentialsCommand
{
throw new NotEnoughArgumentsException();
}
- User user = getPlayer(server, args, 0);
+ final User user = getPlayer(server, args, 0);
user.getTeleport().respawn(ess.getSpawn(), null);
user.sendMessage(_("teleportAtoB", user.getDisplayName(), "spawn"));
sender.sendMessage(_("teleporting"));