Skip to content

Commit

Permalink
Remove the message shown when canceling flying. Fixes #112
Browse files Browse the repository at this point in the history
  • Loading branch information
tastybento committed Aug 8, 2023
1 parent bb4477a commit 6101aaf
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -119,8 +119,6 @@ boolean removeFly(User user) {
disableFly(user);
return true;
}
if (user.getPlayer().isFlying())
user.sendMessage("islandfly.cancel-disable");
return false;
}

Expand All @@ -129,10 +127,6 @@ boolean removeFly(User user) {
disableFly(user);
return true;
}

// If false, will stay silent
if (user.getPlayer().isFlying())
user.sendMessage("islandfly.cancel-disable");
return false;
}

Expand Down
1 change: 0 additions & 1 deletion src/main/resources/locales/en-US.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ islandfly:
not-allowed: "&c Flying is not allowed here."
reallowed-fly: "&a Your fly has been reallowed"
enable-fly: "&a Your fly mode has been enabled."
cancel-disable: "&a You are back, huh! Fly fuel successfully refilled!"
wrong-world: "&c You are not in the right gamemode world"
outside-protection-range: "&c You are not allowed to do that outside your island protection range"
command:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -276,7 +276,6 @@ public void testRemoveFlyUserFlyingOutsideProtectedIsland() {
@Test
public void testRemoveFlyUserFlyingBackInProtectedAreaOfIsland() {
assertFalse(fl.removeFly(user));
verify(user).sendMessage("islandfly.cancel-disable");
}

/**
Expand Down

0 comments on commit 6101aaf

Please sign in to comment.