|
32 | 32 | public class DefaultAddonPlayer implements AddonPlayer { |
33 | 33 |
|
34 | 34 | private static String latestVersion = null; |
35 | | - private boolean gagged = false; |
| 35 | + private boolean shouting = false; |
| 36 | + private boolean whispering = false; |
36 | 37 | private boolean tempDuty = false; |
37 | 38 |
|
38 | 39 | private final UnicacityAddon unicacityAddon; |
@@ -73,24 +74,12 @@ public FloatVector3 getLocation() { |
73 | 74 |
|
74 | 75 | @Override |
75 | 76 | public void sendMessage(String message) { |
76 | | - try { |
77 | | - this.unicacityAddon.displayMessage(message); |
78 | | - } catch (IndexOutOfBoundsException e) { |
79 | | - this.unicacityAddon.utilService().debug("Message sending failed: " + message); |
80 | | - this.unicacityAddon.logger().warn(e.getMessage()); |
81 | | - e.printStackTrace(); |
82 | | - } |
| 77 | + this.unicacityAddon.displayMessage(message); |
83 | 78 | } |
84 | 79 |
|
85 | 80 | @Override |
86 | 81 | public void sendMessage(Component component) { |
87 | | - try { |
88 | | - this.unicacityAddon.displayMessage(component); |
89 | | - } catch (IndexOutOfBoundsException e) { |
90 | | - this.unicacityAddon.utilService().debug("Message sending failed: " + component.toString()); |
91 | | - this.unicacityAddon.logger().warn(e.getMessage()); |
92 | | - e.printStackTrace(); |
93 | | - } |
| 82 | + this.unicacityAddon.displayMessage(component); |
94 | 83 | } |
95 | 84 |
|
96 | 85 | @Override |
@@ -221,13 +210,23 @@ public Weapon getWeaponInMainHand() { |
221 | 210 | } |
222 | 211 |
|
223 | 212 | @Override |
224 | | - public boolean isGagged() { |
225 | | - return gagged; |
| 213 | + public boolean isShouting() { |
| 214 | + return shouting; |
| 215 | + } |
| 216 | + |
| 217 | + @Override |
| 218 | + public void setShouting(boolean shouting) { |
| 219 | + this.shouting = shouting; |
| 220 | + } |
| 221 | + |
| 222 | + @Override |
| 223 | + public boolean isWhispering() { |
| 224 | + return whispering; |
226 | 225 | } |
227 | 226 |
|
228 | 227 | @Override |
229 | | - public void setGagged(boolean gagged) { |
230 | | - this.gagged = gagged; |
| 228 | + public void setWhispering(boolean whispering) { |
| 229 | + this.whispering = whispering; |
231 | 230 | } |
232 | 231 |
|
233 | 232 | @Override |
|
0 commit comments