mirror of
https://github.com/darksaid98/HuskHomes.git
synced 2026-12-03 14:38:53 +00:00
Add TITLE and SUBTITLE warmup display options, stop parsing simple inline MineDown formatting, close #210
This commit is contained in:
1 parent
f80261d919
commit
41ce426480
5 files changed
+31
-6
No files matched your search
@@ -415,6 +415,8 @@ public class TeleportManager {
|
||||
.ifPresent(message -> {
|
||||
switch (plugin.getSettings().teleportWarmupDisplay) {
|
||||
case ACTION_BAR -> teleport.getPlayer().sendActionBar(message);
|
||||
case SUBTITLE -> teleport.getPlayer().sendTitle(message, true);
|
||||
case TITLE -> teleport.getPlayer().sendTitle(message, false);
|
||||
case MESSAGE -> teleport.getPlayer().sendMessage(message);
|
||||
}
|
||||
});
|
||||
@@ -423,6 +425,8 @@ public class TeleportManager {
|
||||
.ifPresent(message -> {
|
||||
switch (plugin.getSettings().teleportWarmupDisplay) {
|
||||
case ACTION_BAR -> teleport.getPlayer().sendActionBar(message);
|
||||
case SUBTITLE -> teleport.getPlayer().sendTitle(message, true);
|
||||
case TITLE -> teleport.getPlayer().sendTitle(message, false);
|
||||
case MESSAGE -> teleport.getPlayer().sendMessage(message);
|
||||
}
|
||||
});
|
||||
|
||||
Reference in new issue
Block a user