summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKHobbits <rob@khobbits.co.uk>2012-08-26 19:53:58 +0100
committerKHobbits <rob@khobbits.co.uk>2012-08-26 19:53:58 +0100
commit3575afd597723f854a79c404f089fbae44d0a9c2 (patch)
tree8d635655c1402e62f88d0795184aaa2738ec7b16
parent4fdccb1e2d471e683bab3fd10fd9eb5258eb3c5b (diff)
downloadEssentials-3575afd597723f854a79c404f089fbae44d0a9c2.tar
Essentials-3575afd597723f854a79c404f089fbae44d0a9c2.tar.gz
Essentials-3575afd597723f854a79c404f089fbae44d0a9c2.tar.lz
Essentials-3575afd597723f854a79c404f089fbae44d0a9c2.tar.xz
Essentials-3575afd597723f854a79c404f089fbae44d0a9c2.zip
Comment out/remove the /speed walk code, until the client properly supports this function.
-rw-r--r--Essentials/src/com/earth2me/essentials/commands/Commandspeed.java34
-rw-r--r--Essentials/src/plugin.yml2
2 files changed, 22 insertions, 14 deletions
diff --git a/Essentials/src/com/earth2me/essentials/commands/Commandspeed.java b/Essentials/src/com/earth2me/essentials/commands/Commandspeed.java
index c7b44dc68..8415241b1 100644
--- a/Essentials/src/com/earth2me/essentials/commands/Commandspeed.java
+++ b/Essentials/src/com/earth2me/essentials/commands/Commandspeed.java
@@ -39,30 +39,38 @@ public class Commandspeed extends EssentialsCommand
boolean isBypass = user.isAuthorized("essentials.speed.bypass");
if (args.length == 1)
{
- isFly = user.isFlying();
+ //isFly = user.isFlying();
+ isFly = true;
speed = getMoveSpeed(args[0]);
}
else
{
- isFly = isFlyMode(args[0]);
- speed = getMoveSpeed(args[1]);
- if (args.length > 2 && user.isAuthorized("essentials.speed.others"))
+ //isFly = isFlyMode(args[0]);
+ //speed = getMoveSpeed(args[1]);
+ //if (args.length > 2 && user.isAuthorized("essentials.speed.others"))
+ //{
+ // speedOtherPlayers(server, user, isFly, isBypass, speed, args[2]);
+ // return;
+ //}
+ isFly = true;
+ speed = getMoveSpeed(args[0]);
+ if (user.isAuthorized("essentials.speed.others"))
{
- speedOtherPlayers(server, user, isFly, isBypass, speed, args[2]);
+ speedOtherPlayers(server, user, isFly, isBypass, speed, args[1]);
return;
}
}
- if (isFly)
- {
+ //if (isFly)
+ //{
user.setFlySpeed(getRealMoveSpeed(speed, isFly, isBypass));
user.sendMessage(_("moveSpeed", _("flying"), speed, user.getDisplayName()));
- }
- else
- {
- user.setWalkSpeed(getRealMoveSpeed(speed, isFly, isBypass));
- user.sendMessage(_("moveSpeed", _("walking"), speed, user.getDisplayName()));
- }
+ //}
+ //else
+ //{
+ // user.setWalkSpeed(getRealMoveSpeed(speed, isFly, isBypass));
+ // user.sendMessage(_("moveSpeed", _("walking"), speed, user.getDisplayName()));
+ //}
}
private void speedOtherPlayers(final Server server, final CommandSender sender, final boolean isFly, final boolean isBypass, final float speed, final String target)
diff --git a/Essentials/src/plugin.yml b/Essentials/src/plugin.yml
index b04d59fa7..0a2027910 100644
--- a/Essentials/src/plugin.yml
+++ b/Essentials/src/plugin.yml
@@ -328,7 +328,7 @@ commands:
aliases: [espawnmob,mob,emob]
speed:
description: Change your speed limits
- usage: /<command> [fly|walk] [speed] [player]
+ usage: /<command> [speed] [player]
aliases: [flyspeed,walkspeed,fspeed,wspeed,eflyspeed,ewalkspeed,efspeed,ewspeed,espeed]
sudo:
description: Make another user perform a command.