mirror of
https://github.com/Freezy-Studios/BlazeSMP.git
synced 2025-04-22 07:34:05 +02:00
Fixed bugs
This commit is contained in:
parent
aa7f495488
commit
21e0194f6b
10 changed files with 157 additions and 45 deletions
|
@ -13,6 +13,7 @@ import org.bukkit.configuration.file.FileConfiguration;
|
|||
import org.bukkit.plugin.PluginManager;
|
||||
import org.bukkit.plugin.java.JavaPlugin;
|
||||
import org.bukkit.scheduler.BukkitTask;
|
||||
import org.bukkit.scoreboard.Team;
|
||||
import org.slf4j.Logger;
|
||||
|
||||
public final class BlazeSMP extends JavaPlugin {
|
||||
|
@ -82,7 +83,7 @@ public final class BlazeSMP extends JavaPlugin {
|
|||
pm.registerEvents(new ChunkInventoryListener(), this);
|
||||
pm.registerEvents(new PressurePlateListener(), this);
|
||||
pm.registerEvents(new PlayerVsPlayerListener(clans), this);
|
||||
pm.registerEvents(new ProtectedBlockListener(), this);
|
||||
//pm.registerEvents(new ProtectedBlockListener(), this);
|
||||
this.log.info("Registered EventListeners!");
|
||||
|
||||
this.log.info("Starting Timer tasks...");
|
||||
|
@ -113,6 +114,10 @@ public final class BlazeSMP extends JavaPlugin {
|
|||
this.clans.saveAllClans();
|
||||
this.log.info("Saved Clans!");
|
||||
|
||||
this.log.info("Clearing Teams...");
|
||||
getServer().getScoreboardManager().getMainScoreboard().getTeams().forEach(Team::unregister);
|
||||
this.log.info("Cleared Teams!");
|
||||
|
||||
this.log.info("Disabling BlazeSMP!");
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue