hotfix
Dieser Commit ist enthalten in:
Ursprung
0657ac404b
Commit
3fdb9072f8
@ -6,6 +6,7 @@ import de.steamwar.bausystem.world.BauScoreboard;
|
||||
import de.steamwar.bausystem.world.RegionListener;
|
||||
import de.steamwar.bausystem.world.TNTListener;
|
||||
import de.steamwar.core.CommandRemover;
|
||||
import de.steamwar.scoreboard.SWScoreboard;
|
||||
import de.steamwar.sql.SteamwarUser;
|
||||
import org.bukkit.Bukkit;
|
||||
import org.bukkit.configuration.InvalidConfigurationException;
|
||||
@ -117,6 +118,7 @@ public class BauSystem extends JavaPlugin implements Listener {
|
||||
|
||||
@EventHandler
|
||||
public void onLeave(PlayerQuitEvent e) {
|
||||
SWScoreboard.removeScoreboard(e.getPlayer());
|
||||
if(Bukkit.getOnlinePlayers().isEmpty() || (Bukkit.getOnlinePlayers().size() == 1 && Bukkit.getOnlinePlayers().contains(e.getPlayer())))
|
||||
Bukkit.shutdown();
|
||||
}
|
||||
|
In neuem Issue referenzieren
Einen Benutzer sperren