Fixed actionbar saying full when it shoud say restarting or offline
This commit is contained in:
@@ -203,13 +203,6 @@ public class Manager {
|
|||||||
|
|
||||||
String status = "unknown";
|
String status = "unknown";
|
||||||
|
|
||||||
if(!s.isOnline()) {
|
|
||||||
status = msgs.get("status.offline.restarting");
|
|
||||||
}
|
|
||||||
|
|
||||||
if(s.getOfflineTime() > pl.config.getInt("offline-time")) {
|
|
||||||
status = msgs.get("status.offline.offline");
|
|
||||||
}
|
|
||||||
|
|
||||||
if(!s.canAccess(p)) {
|
if(!s.canAccess(p)) {
|
||||||
status = msgs.get("status.offline.restricted");
|
status = msgs.get("status.offline.restricted");
|
||||||
@@ -223,6 +216,14 @@ public class Manager {
|
|||||||
status = msgs.get("status.offline.paused");
|
status = msgs.get("status.offline.paused");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if(!s.isOnline()) {
|
||||||
|
status = msgs.get("status.offline.restarting");
|
||||||
|
}
|
||||||
|
|
||||||
|
if(s.getOfflineTime() > pl.config.getInt("offline-time")) {
|
||||||
|
status = msgs.get("status.offline.offline");
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
BungeeUtils.sendCustomData(p, "actionbar", msgs.get("spigot.actionbar.offline")
|
BungeeUtils.sendCustomData(p, "actionbar", msgs.get("spigot.actionbar.offline")
|
||||||
.replaceAll("\\{POS\\}", pos+"")
|
.replaceAll("\\{POS\\}", pos+"")
|
||||||
|
|||||||
Reference in New Issue
Block a user