* Fixed bug timer stops and game stops working on reload/create etc.

This commit is contained in:
Steffion 2013-08-12 20:46:38 +02:00
parent d4d7df5bc6
commit 4f4c46fe4e
3 changed files with 10 additions and 3 deletions

View File

@ -527,8 +527,8 @@ public class BlockHunt extends JavaPlugin implements Listener {
}
public void onDisable() {
for (Player player : Bukkit.getOnlinePlayers()) {
ArenaHandler.playerLeaveArena(player, false, true);
for (Arena arena : W.arenaList) {
ArenaHandler.stopArena(arena);
}
MessageM.sendFMessage(null, ConfigC.log_Disabled, true, "name-"

View File

@ -43,7 +43,10 @@ public class CMDcreate extends DefaultCMD {
W.arenas.getFile().set(args[1], arena);
W.arenas.save();
W.arenas.load();
W.signs.load();
for (Arena arena2 : W.arenaList) {
ArenaHandler.stopArena(arena2);
}
ArenaHandler.loadArenas();
MessageM.sendFMessage(player,

View File

@ -1,5 +1,6 @@
package nl.Steffion.BlockHunt.Commands;
import nl.Steffion.BlockHunt.Arena;
import nl.Steffion.BlockHunt.ArenaHandler;
import nl.Steffion.BlockHunt.W;
import nl.Steffion.BlockHunt.Managers.ConfigC;
@ -20,6 +21,9 @@ public class CMDreload extends DefaultCMD {
W.messages.load();
W.arenas.load();
W.signs.load();
for (Arena arena : W.arenaList) {
ArenaHandler.stopArena(arena);
}
ArenaHandler.loadArenas();
W.newFiles();
MessageM.sendFMessage(player, ConfigC.normal_reloadedConfigs, true);