9
0
mirror of https://gitlab.com/SamB440/rpgregions-2.git synced 2026-01-04 15:31:38 +00:00

Add debug messages, readd 1.16 support

This commit is contained in:
SamB440
2021-06-15 15:30:20 +01:00
parent 91a40f659a
commit 036d704f7f
6 changed files with 34 additions and 11 deletions

View File

@@ -25,6 +25,8 @@ public interface IRPGRegionsAPI {
IRPGRegionsManagers getManagers();
boolean debug();
void debug(String debug);
boolean hasHeadDatabase();
}

View File

@@ -16,12 +16,15 @@ public class TitleAnimator {
public void run() {
String title = current < titles.size() ? titles.get(current) : "";
String subtitle = current < subtitles.size() ? subtitles.get(current) : "";
plugin.debug("Title is: " + title + " Subtitle is: " + subtitle);
if (current >= titles.size()
&& current >= subtitles.size()) {
plugin.debug("Cancelling! No more titles left to send.");
this.cancel();
return;
}
plugin.debug("Successful title send!");
player.sendTitle(title,
subtitle,
plugin.getConfig().getInt("settings.server.discoveries.discovered.title.fadein"),