better messeges when using fly feature
This commit is contained in:
@@ -18,12 +18,12 @@ public class FlyCommand extends Command {
|
||||
@Override
|
||||
public boolean execute(CommandSender sender, String currentAlias, String[] args) {
|
||||
if (!(sender instanceof Player)) {
|
||||
sender.sendMessage("You can only use this command as a player.");
|
||||
sender.sendMessage("This command is only for players!");
|
||||
return true;
|
||||
}
|
||||
|
||||
if (args.length != 0) {
|
||||
sender.sendMessage(ChatColor.RED + "Usage: /fly");
|
||||
sender.sendMessage(ChatColor.RED + "command usage: /fly");
|
||||
return true;
|
||||
}
|
||||
|
||||
@@ -31,7 +31,7 @@ public class FlyCommand extends Command {
|
||||
player.flightAllowed = !player.flightAllowed;
|
||||
|
||||
if (player.flightAllowed) {
|
||||
sender.sendMessage(ChatColor.GREEN + "Flight enabled.");
|
||||
sender.sendMessage(ChatColor.GREEN + "Flight enabled you can now fly.");
|
||||
sender.sendMessage(ChatColor.YELLOW + "Look up to rise, look down or sneak to descend.");
|
||||
} else {
|
||||
sender.sendMessage(ChatColor.YELLOW + "Flight disabled.");
|
||||
|
||||
Reference in New Issue
Block a user