Mirror von
https://github.com/IntellectualSites/FastAsyncWorldEdit.git
synchronisiert 2024-12-25 02:20:07 +01:00
Fixed blank lines being sent on disable
Dieser Commit ist enthalten in:
Ursprung
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();
|
||||
}
|
||||
|
||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren