Skip to content

Commit

Permalink
Fixes bug
Browse files Browse the repository at this point in the history
  • Loading branch information
tastybento committed May 31, 2017
1 parent af99844 commit 81257b8
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -196,5 +196,5 @@
<url>http://maven.sk89q.com/repo/</url>
</repository>
</repositories>
<version>3.0.6.7</version>
<version>3.0.6.8</version>
</project>
8 changes: 5 additions & 3 deletions src/com/wasteofplastic/askyblock/listeners/PlayerEvents.java
Original file line number Diff line number Diff line change
Expand Up @@ -347,9 +347,11 @@ public void onPlayerLeave(PlayerQuitEvent event){
}
temporaryPerms.remove(player.getUniqueId());
}
if (player.getGameMode().equals(GameMode.SURVIVAL)) {
player.setAllowFlight(false);
player.setFlying(false);
if(VaultHelper.checkPerm(player, Settings.PERMPREFIX + "islandfly")) {
if (player.getGameMode().equals(GameMode.SURVIVAL)) {
player.setAllowFlight(false);
player.setFlying(false);
}
}
final Island island = plugin.getGrid().getProtectedIslandAt(event.getPlayer().getLocation());
if (island != null) {
Expand Down

0 comments on commit 81257b8

Please sign in to comment.