Removed debugs and unused config

This commit is contained in:
Fabrizio La Rosa 2020-08-03 12:22:37 +02:00
parent de965d0303
commit c26b9b3f72
3 changed files with 4 additions and 13 deletions

View File

@ -26,6 +26,10 @@ import java.util.UUID;
public class PlaceholderProcessor {
public String processPlaceholder(Player player, String placeholder) {
if(player == null || placeholder == null) {
return "";
}
SkyBlock plugin = SkyBlock.getInstance();
IslandManager islandManager = plugin.getIslandManager();
VisitManager visitManager = plugin.getVisitManager();
@ -36,7 +40,6 @@ public class PlaceholderProcessor {
new File(plugin.getDataFolder(), "placeholders.yml")).getFileConfiguration();
if(placeholdersLoad == null) {
Bukkit.broadcastMessage("ABC");
return "Error";
}
@ -44,10 +47,6 @@ public class PlaceholderProcessor {
String returnValue = null;
if(player == null || placeholder == null) {
return "";
}
switch (placeholder.toLowerCase()) {
case "fabledskyblock_island_exists":
if (island == null) {

View File

@ -82,7 +82,6 @@ public class ScoreboardManager extends Manager {
}
setPlayerScoreboard(player, type);
Bukkit.broadcastMessage(type.toString());
}
}
@ -116,7 +115,6 @@ public class ScoreboardManager extends Manager {
driver.runTaskTimer(plugin, 1L, 1L);
}
drivers.add(driver);
Bukkit.broadcastMessage("G " + drivers.size());
}
public void clearDrivers() {
@ -128,12 +126,10 @@ public class ScoreboardManager extends Manager {
public void setPlayerScoreboard(Player player, ScoreboardType type) {
for(Driver driver : drivers) {
if(driver.getBoardType().equals(type)) {
Bukkit.broadcastMessage("F");
driver.registerHolder(new Holder(plugin, driver, player));
} else {
driver.unregisterHolder(player);
}
}
Bukkit.broadcastMessage(drivers.size() + "");
}
}

View File

@ -191,10 +191,6 @@ Scoreboards:
Content:
- '&ewww.songoda.com'
Team:
Word:
Owner: 'Owner'
Operator: 'Operator'
Member: 'Member'
Empty:
Title:
Interval: 3