Skip to content

Commit 6101aaf

Browse files
committed
Remove the message shown when canceling flying. Fixes #112
1 parent bb4477a commit 6101aaf

File tree

3 files changed

+0
-8
lines changed

3 files changed

+0
-8
lines changed

src/main/java/world/bentobox/islandfly/listeners/FlyListener.java

-6
Original file line numberDiff line numberDiff line change
@@ -119,8 +119,6 @@ boolean removeFly(User user) {
119119
disableFly(user);
120120
return true;
121121
}
122-
if (user.getPlayer().isFlying())
123-
user.sendMessage("islandfly.cancel-disable");
124122
return false;
125123
}
126124

@@ -129,10 +127,6 @@ boolean removeFly(User user) {
129127
disableFly(user);
130128
return true;
131129
}
132-
133-
// If false, will stay silent
134-
if (user.getPlayer().isFlying())
135-
user.sendMessage("islandfly.cancel-disable");
136130
return false;
137131
}
138132

src/main/resources/locales/en-US.yml

-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@ islandfly:
55
not-allowed: "&c Flying is not allowed here."
66
reallowed-fly: "&a Your fly has been reallowed"
77
enable-fly: "&a Your fly mode has been enabled."
8-
cancel-disable: "&a You are back, huh! Fly fuel successfully refilled!"
98
wrong-world: "&c You are not in the right gamemode world"
109
outside-protection-range: "&c You are not allowed to do that outside your island protection range"
1110
command:

src/test/java/world/bentobox/islandfly/listeners/FlyListenerTest.java

-1
Original file line numberDiff line numberDiff line change
@@ -276,7 +276,6 @@ public void testRemoveFlyUserFlyingOutsideProtectedIsland() {
276276
@Test
277277
public void testRemoveFlyUserFlyingBackInProtectedAreaOfIsland() {
278278
assertFalse(fl.removeFly(user));
279-
verify(user).sendMessage("islandfly.cancel-disable");
280279
}
281280

282281
/**

0 commit comments

Comments
 (0)