Removed wrong scoreboard update

This commit is contained in:
Fabrizio La Rosa 2020-08-04 00:44:09 +02:00
parent 1938545a9c
commit ab85621f67

View File

@ -532,7 +532,6 @@ public class IslandManager {
}
public synchronized boolean deleteIsland(Island island, boolean force) {
ScoreboardManager scoreboardManager = plugin.getScoreboardManager();
PlayerDataManager playerDataManager = plugin.getPlayerDataManager();
CooldownManager cooldownManager = plugin.getCooldownManager();
FileManager fileManager = plugin.getFileManager();
@ -585,10 +584,6 @@ public class IslandManager {
playerData.setChat(false);
playerData.save();
if (scoreboardManager != null) {
scoreboardManager.updatePlayerScoreboardType(player);
}
if (isPlayerAtIsland(island, player)) {
LocationUtil.teleportPlayerToSpawn(player);
}