Skip to content
This repository has been archived by the owner on Jul 4, 2024. It is now read-only.

Commit

Permalink
Message null check
Browse files Browse the repository at this point in the history
  • Loading branch information
Angelillo15 committed Sep 7, 2023
1 parent b08f7bb commit 0f8505d
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,7 @@ interface AntiAbuserPlayer {
* @param message the message to send
*/
fun sendMessage(message: String) {
if (message.isEmpty()) return
sendMessage(MiniMessage.miniMessage().deserialize(TextUtils.toMM(message)))
}

Expand All @@ -78,6 +79,7 @@ interface AntiAbuserPlayer {
* @param message the message to send
*/
fun sendActionBar(message: String) {
if (message.isEmpty()) return
sendActionBar(MiniMessage.miniMessage().deserialize(TextUtils.toMM(message)))
}

Expand Down

0 comments on commit 0f8505d

Please sign in to comment.