diff --git a/packages/bukkit/src/chat.ts b/packages/bukkit/src/chat.ts index 71a97dc8..9de0f1ea 100644 --- a/packages/bukkit/src/chat.ts +++ b/packages/bukkit/src/chat.ts @@ -14,6 +14,10 @@ export class BukkitChat extends chat.Chat { this.sendJson(sender, { text: message }, 2) } sendTitle(sender: any, title: string, subtitle: string = '', fadeIn: number = 20, time: number = 100, fadeOut: number = 20) { - sender.sendTitle(title, subtitle, fadeIn, time, fadeOut) + try { + sender.sendTitle(title, subtitle, fadeIn, time, fadeOut) + } catch (error) { + sender.sendTitle(title, subtitle) + } } }