()
| 391 | } |
| 392 | |
| 393 | @Override |
| 394 | public void onDisable() { |
| 395 | |
| 396 | if (this.packetManager != null) { |
| 397 | this.packetManager.onDisable(); |
| 398 | } |
| 399 | |
| 400 | this.preDisable(); |
| 401 | |
| 402 | if (this.vinventoryManager != null) this.vinventoryManager.close(); |
| 403 | this.inventoriesPlayer.restoreAllInventories(); |
| 404 | |
| 405 | Configuration.getInstance().save(this.getConfig(), this.configFile); |
| 406 | |
| 407 | YamlFileCache.clearCache(); |
| 408 | |
| 409 | if (Token.token != null) { |
| 410 | Token.getInstance().save(this.getPersist()); |
| 411 | } |
| 412 | |
| 413 | this.itemManager.unloadListeners(); |
| 414 | |
| 415 | this.getServer().getServicesManager().unregisterAll(this); |
| 416 | |
| 417 | this.postDisable(); |
| 418 | } |
| 419 | |
| 420 | /** |
| 421 | * Returns the class that will manage the loading of the buttons |
nothing calls this directly
no test coverage detected