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

View File

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

View File

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