Update LinearWaypointProvider.java

This commit is contained in:
fullwall 2014-05-09 00:31:27 +08:00
parent 190d8e823d
commit 3f22729ca9

View File

@ -76,7 +76,7 @@ public class LinearWaypointProvider implements WaypointProvider {
} else if (args.hasFlag('p')) {
setPaused(!isPaused());
return null;
} else if (!(sender instanceof CommandSender)) {
} else if (!(sender instanceof Player)) {
Messaging.sendErrorTr(sender, Messages.COMMAND_MUST_BE_INGAME);
return null;
}
@ -440,4 +440,4 @@ public class LinearWaypointProvider implements WaypointProvider {
return true;
}
}
}
}