- Remove ignorecancelled=true from AsyncPlayerChatEvent in order to make

TC respect other plugins' cancelling of chat in some places.
This commit is contained in:
Llm Dl committed 2019-10-09 12:07:20 -05:00
1 parent cedd657ece
commit 67ce04996a
4 files changed
+13 -15

No files matched your search

+1
View File
@@ -12,3 +12,4 @@
# Prevent Maven Leakage
/target
/.settings/
+7 -11
View File
@@ -7,7 +7,7 @@
<groupId>com.palmergames.bukkit</groupId>
<artifactId>TownyChat</artifactId>
<packaging>jar</packaging>
<version>0.57-SNAPSHOT</version>
<version>0.57</version>
<licenses>
<license>
@@ -44,9 +44,6 @@
</scm>
<repositories>
<!--TODO: Add Repositories for...
- Towny (if not building from local sources)
-->
<repository>
<id>spigot-repo</id>
<url>https://hub.spigotmc.org/nexus/content/repositories/snapshots/</url>
@@ -60,18 +57,17 @@
<url>http://repo.mikeprimm.com</url>
</repository>
<repository>
<!--Temporary: Switch to GitHub Packages after beta grant-->
<id>articdive-repo</id>
<url>https://nexus.articdive.de/repository/maven-releases</url>
<id>github-Towny</id>
<url>https://maven.pkg.github.com/TownyAdvanced/Towny</url>
</repository>
</repositories>
<dependencies>
<dependency>
<groupId>com.palmergames</groupId>
<artifactId>Towny</artifactId>
<version>0.94.0.5</version>
<scope>provided</scope>
<groupId>com.palmergames.bukkit.towny</groupId>
<artifactId>Towny</artifactId>
<version>LATEST</version>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>org.bukkit</groupId>
+4 -3
View File
@@ -238,6 +238,7 @@ v0.55:
v0.56:
- Upgrade TownyChat to use the new Towny API (0.94.0.2+).
v0.57:
- TownyChat now utilizes the Maven build system.
- EssentialsX Replaces Essentials for API, Dynmap-API is updated for Dynmap v3.
- Removed CraftIRC and HeroicDeath as dependencies.
- TownyChat now utilizes the Maven build system.
- EssentialsX Replaces Essentials for API, Dynmap-API is updated for Dynmap v3.
- Removed CraftIRC and HeroicDeath as dependencies.
- Remove ignorecancelled=true from AsyncPlayerChatEvent in order to make TC respect other plugins' cancelling of chat in some places.
@@ -65,7 +65,7 @@ public class TownyChatPlayerListener implements Listener {
}
}
@EventHandler(priority = EventPriority.LOW, ignoreCancelled = true)
@EventHandler(priority = EventPriority.LOW)
public void onPlayerChat(AsyncPlayerChatEvent event) {
Player player = event.getPlayer();