mirror of
https://github.com/songoda/FabledSkyBlock.git
synced 2024-11-23 02:35:25 +01:00
Removed debugs and unused config
This commit is contained in:
parent
de965d0303
commit
c26b9b3f72
@ -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) {
|
||||
|
@ -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() + "");
|
||||
}
|
||||
}
|
||||
|
@ -191,10 +191,6 @@ Scoreboards:
|
||||
Content:
|
||||
- '&ewww.songoda.com'
|
||||
Team:
|
||||
Word:
|
||||
Owner: 'Owner'
|
||||
Operator: 'Operator'
|
||||
Member: 'Member'
|
||||
Empty:
|
||||
Title:
|
||||
Interval: 3
|
||||
|
Loading…
Reference in New Issue
Block a user