diff options
Diffstat (limited to 'Essentials/src/com/earth2me/essentials/commands/Commandfly.java')
-rw-r--r-- | Essentials/src/com/earth2me/essentials/commands/Commandfly.java | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/Essentials/src/com/earth2me/essentials/commands/Commandfly.java b/Essentials/src/com/earth2me/essentials/commands/Commandfly.java index 8036ba57c..8d38f08dd 100644 --- a/Essentials/src/com/earth2me/essentials/commands/Commandfly.java +++ b/Essentials/src/com/earth2me/essentials/commands/Commandfly.java @@ -1,9 +1,9 @@ package com.earth2me.essentials.commands; +import com.earth2me.essentials.CommandSource; import static com.earth2me.essentials.I18n._; import com.earth2me.essentials.User; import org.bukkit.Server; -import org.bukkit.command.CommandSender; public class Commandfly extends EssentialsToggleCommand @@ -14,7 +14,7 @@ public class Commandfly extends EssentialsToggleCommand } @Override - protected void run(final Server server, final CommandSender 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 { toggleOtherPlayers(server, sender, args); } @@ -27,25 +27,25 @@ public class Commandfly extends EssentialsToggleCommand Boolean toggle = matchToggleArgument(args[0]); if (toggle == null && user.isAuthorized(othersPermission)) { - toggleOtherPlayers(server, user.getBase(), args); + toggleOtherPlayers(server, user.getSource(), args); } else { - togglePlayer(user.getBase(), user, toggle); + togglePlayer(user.getSource(), user, toggle); } } else if (args.length == 2 && user.isAuthorized(othersPermission)) { - toggleOtherPlayers(server, user.getBase(), args); + toggleOtherPlayers(server, user.getSource(), args); } else { - togglePlayer(user.getBase(), user, null); + togglePlayer(user.getSource(), user, null); } } @Override - void togglePlayer(CommandSender sender, User user, Boolean enabled) + void togglePlayer(CommandSource sender, User user, Boolean enabled) { if (enabled == null) { |