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:
@@ -25,6 +25,8 @@ public interface IRPGRegionsAPI {
|
||||
IRPGRegionsManagers getManagers();
|
||||
|
||||
boolean debug();
|
||||
|
||||
void debug(String debug);
|
||||
|
||||
boolean hasHeadDatabase();
|
||||
}
|
||||
|
||||
@@ -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"),
|
||||
|
||||
Reference in New Issue
Block a user