Refactor format handler

This commit is contained in:
Draycia committed 2020-08-10 04:13:48 -07:00
1 parent 84c5c67674
commit 305e9162fa
28 files changed
+221 -190

No files matched your search

@@ -6,7 +6,7 @@ import com.palmergames.bukkit.towny.exceptions.NotRegisteredException;
import com.palmergames.bukkit.towny.object.Resident;
import net.draycia.carbon.CarbonChat;
import net.draycia.carbon.events.ChannelSwitchEvent;
import net.draycia.carbon.events.ChatFormatEvent;
import net.draycia.carbon.events.PreChatFormatEvent;
import net.draycia.carbon.storage.ChatUser;
import org.bukkit.Bukkit;
import org.bukkit.event.EventHandler;
@@ -46,7 +46,7 @@ public final class CarbonChatTowny extends JavaPlugin {
}
@EventHandler(ignoreCancelled = true)
public void onChannelMessage(ChatFormatEvent event) {
public void onChannelMessage(PreChatFormatEvent event) {
// TODO: event.setFailureMessage
Object town = event.getChannel().getContext(KEY);