mirror of
https://github.com/Maxlego08/zKoth.git
synced 2025-02-17 01:52:25 +01:00
🚧 Bug fix
This commit is contained in:
parent
105da06993
commit
ae48fe0f10
@ -1,7 +1,7 @@
|
||||
name: zKoth
|
||||
author: Maxlego08
|
||||
main: fr.maxlego08.zkoth.ZKothPlugin
|
||||
version: 2.0.1.4
|
||||
version: 2.0.1.5
|
||||
softdepend: [PlaceholderAPI, Guilds, Factions, FactionsX, SuperiorSkyblock2, LegacyFactions, FeatherBoard, TAB, TitleManager, UltimateFactions]
|
||||
commands:
|
||||
api-version: 1.13
|
@ -382,7 +382,8 @@ public class ZKoth extends ZUtils implements Koth {
|
||||
int tmpCapture = this.currentCaptureSeconds.get();
|
||||
|
||||
if (this.currentPlayer != null) {
|
||||
if (!this.currentPlayer.isOnline() || !cuboid.contains(this.currentPlayer.getLocation()))
|
||||
if (!this.currentPlayer.isValid() || !this.currentPlayer.isOnline()
|
||||
|| !cuboid.contains(this.currentPlayer.getLocation()))
|
||||
this.currentPlayer = null;
|
||||
}
|
||||
|
||||
@ -474,7 +475,7 @@ public class ZKoth extends ZUtils implements Koth {
|
||||
this.timerTask = null;
|
||||
this.currentCaptureSeconds = null;
|
||||
} else {
|
||||
|
||||
|
||||
KothCapEvent capEvent = new KothCapEvent(this, player, this.currentCaptureSeconds.get(),
|
||||
this.factionListener.getFactionTag(player));
|
||||
capEvent.callEvent();
|
||||
|
@ -2,6 +2,7 @@ package fr.maxlego08.zkoth.save;
|
||||
|
||||
import java.io.File;
|
||||
import java.io.IOException;
|
||||
import java.util.ArrayList;
|
||||
import java.util.HashMap;
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
@ -124,9 +125,11 @@ public class MessageLoader extends YamlUtils implements Saveable {
|
||||
if (configuration.contains(key + ".messages")) {
|
||||
List<String> messages = configuration.getStringList(key + ".messages");
|
||||
enumMessage.setMessages(color(messages));
|
||||
enumMessage.setMessage(null);
|
||||
} else {
|
||||
String message = configuration.getString(key + ".message");
|
||||
enumMessage.setMessage(color(message));
|
||||
enumMessage.setMessages(new ArrayList<String>());
|
||||
}
|
||||
break;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user