Remove pointless try/catch
This commit is contained in:
parent
c99a23d670
commit
0f4f1a3582
@ -48,16 +48,7 @@ public class AntiSpamManager extends MiniPlugin
|
|||||||
String message = event.getMessage();
|
String message = event.getMessage();
|
||||||
ChatPayload payload = new ChatPayload(player.getName(), player.getUniqueId().toString(), _region, _serverName, message, System.currentTimeMillis());
|
ChatPayload payload = new ChatPayload(player.getName(), player.getUniqueId().toString(), _region, _serverName, message, System.currentTimeMillis());
|
||||||
// Run our API call async to the chat message (prevents blocking chat message)
|
// Run our API call async to the chat message (prevents blocking chat message)
|
||||||
runAsync(() -> {
|
runAsync(() -> _repository.logMessage(_pluginName, payload));
|
||||||
try
|
|
||||||
{
|
|
||||||
_repository.logMessage(_pluginName, payload);
|
|
||||||
}
|
|
||||||
catch (Exception ex)
|
|
||||||
{
|
|
||||||
System.out.println("Failed to send chat payload to AntiSpam repo. Ignoring!");
|
|
||||||
}
|
|
||||||
});
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user