Mirror von
https://github.com/IntellectualSites/FastAsyncWorldEdit.git
synchronisiert 2024-11-09 13:00:05 +01:00
[Bukkit] Handle onDisable() better when onEnable() fails.
Dieser Commit ist enthalten in:
Ursprung
302d089d55
Commit
d4dde8c4a6
@ -156,10 +156,12 @@ public class WorldEditPlugin extends JavaPlugin implements TabCompleter {
|
||||
*/
|
||||
@Override
|
||||
public void onDisable() {
|
||||
controller.clearSessions();
|
||||
controller.getPlatformManager().unregister(server);
|
||||
config.unload();
|
||||
server.unregisterCommands();
|
||||
if (controller != null) {
|
||||
controller.clearSessions();
|
||||
controller.getPlatformManager().unregister(server);
|
||||
config.unload();
|
||||
server.unregisterCommands();
|
||||
}
|
||||
this.getServer().getScheduler().cancelTasks(this);
|
||||
}
|
||||
|
||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren