* Fixed bug timer stops and game stops working on reload/create etc.
This commit is contained in:
parent
d4d7df5bc6
commit
4f4c46fe4e
@ -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-"
|
||||
|
@ -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,
|
||||
|
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user