mirror of
https://github.com/MassiveCraft/Factions.git
synced 2024-11-18 00:05:17 +01:00
Performance improvement as suggested by md_5, thanks.
This commit is contained in:
parent
a71b3a19f3
commit
c5be1754c4
@ -63,7 +63,7 @@ public class FactionsListenerChat implements Listener
|
||||
{
|
||||
try
|
||||
{
|
||||
if (!AsyncPlayerChatEvent.class.isAssignableFrom(event.getClass())) return;
|
||||
if (!(event instanceof AsyncPlayerChatEvent)) return;
|
||||
setFormat((AsyncPlayerChatEvent)event);
|
||||
}
|
||||
catch (Throwable t)
|
||||
@ -89,7 +89,7 @@ public class FactionsListenerChat implements Listener
|
||||
{
|
||||
try
|
||||
{
|
||||
if (!AsyncPlayerChatEvent.class.isAssignableFrom(event.getClass())) return;
|
||||
if (!(event instanceof AsyncPlayerChatEvent)) return;
|
||||
parseTags((AsyncPlayerChatEvent)event);
|
||||
}
|
||||
catch (Throwable t)
|
||||
@ -117,7 +117,7 @@ public class FactionsListenerChat implements Listener
|
||||
{
|
||||
try
|
||||
{
|
||||
if (!AsyncPlayerChatEvent.class.isAssignableFrom(event.getClass())) return;
|
||||
if (!(event instanceof AsyncPlayerChatEvent)) return;
|
||||
parseRelcolor((AsyncPlayerChatEvent)event);
|
||||
}
|
||||
catch (Throwable t)
|
||||
|
Loading…
Reference in New Issue
Block a user