*Bug fixes

This commit is contained in:
Lukas
2014-11-02 18:08:16 +01:00
parent 149ba5e92d
commit f4d84c40b1
4 changed files with 13 additions and 16 deletions

View File

@@ -319,7 +319,7 @@ public class TeamCommands implements CommandExecutor {
}
} else if (cmd.getName().equalsIgnoreCase("toggleBoatFlight")) {
if (P.hasPermission("core.boat.toggleflight")) {
if (P != null && P.hasPermission("core.boat.toggleflight")) {
if (Features.wantFlight.contains(P.getUniqueId())) {
Features.wantFlight.remove(P.getUniqueId());
P.sendMessage("Du wurdest aus der Liste entfernt!");