mirror of
https://github.com/plexusorg/Plex-FAWE.git
synced 2024-12-23 09:47:38 +00:00
Fixed blank lines being sent on disable
This commit is contained in:
parent
281db091b8
commit
f9aa5910f2
@ -591,6 +591,15 @@ public class LocalSession {
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets the status of CUI support.
|
||||
*
|
||||
* @return
|
||||
*/
|
||||
public boolean hasCUISupport() {
|
||||
return hasCUISupport;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets the status of CUI support.
|
||||
*
|
||||
|
@ -110,10 +110,13 @@ public class WorldEditPlugin extends JavaPlugin {
|
||||
* Called on plugin disable.
|
||||
*/
|
||||
public void onDisable() {
|
||||
controller.clearSessions();
|
||||
for (Player player : getServer().getOnlinePlayers()) {
|
||||
wrapPlayer(player).dispatchCUIHandshake();
|
||||
LocalPlayer lPlayer = wrapPlayer(player);
|
||||
if (controller.getSession(lPlayer).hasCUISupport()) {
|
||||
lPlayer.dispatchCUIHandshake();
|
||||
}
|
||||
}
|
||||
controller.clearSessions();
|
||||
config.unload();
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user