Skip to content

Commit

Permalink
Remove messages
Browse files Browse the repository at this point in the history
  • Loading branch information
SergeyDertan committed Jun 17, 2019
1 parent c46bbfa commit 0ef65da
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 31 deletions.
12 changes: 0 additions & 12 deletions src/main/kotlin/Sergey_Dertan/SVault/main/SVaultMain.kt
Original file line number Diff line number Diff line change
Expand Up @@ -62,39 +62,27 @@ class SVaultMain : PluginBase() {
}

override fun onEnable() {
val start = System.currentTimeMillis()

if (!this.createDirectories()) return
if (!this.initMessenger()) return

this.logger.info(TextFormat.GREEN.toString() + this.messenger.getMessage("loading.init.start", "@ver", this.description.version))

this.logger.info(TextFormat.GREEN.toString() + this.messenger.getMessage("loading.init.libraries"))
if (!this.loadLibraries()) return

this.logger.info(TextFormat.GREEN.toString() + this.messenger.getMessage("loading.init.settings"))
if (!this.initSettings()) return

this.logger.info(TextFormat.GREEN.toString() + this.messenger.getMessage("loading.init.data-provider"))
if (!this.initDataProvider()) return

instance = this

this.logger.info(TextFormat.GREEN.toString() + this.messenger.getMessage("loading.init.vaults"))
this.initVaults()

this.logger.info(TextFormat.GREEN.toString() + this.messenger.getMessage("loading.init.events-handlers"))
this.initEventHandler()

this.logger.info(TextFormat.GREEN.toString() + this.messenger.getMessage("loading.init.commands"))
this.initCommands()

this.initAutoSave()

this.loadPlaceholders()

this.logger.info(TextFormat.GREEN.toString() + this.messenger.getMessage("loading.init.successful", "@time", (System.currentTimeMillis() - start).toString()))

this.server.scheduler.scheduleTask(this, { this.checkUpdate() }, true)
}

Expand Down
11 changes: 1 addition & 10 deletions src/main/resources/lang/eng.yml
Original file line number Diff line number Diff line change
@@ -1,16 +1,7 @@
loading.init.start: "Initializing SVault V_{@ver} by Sergey Dertan..."
loading.init.folders: "Creating folders..."
loading.init.settings: "Settings initializing..."
loading.init.libraries: "Loading libraries..."
loading.init.update-available: "New version of SVault is available! {@ver}."
=loading.init.update-available: "New version of SVault is available! {@ver}."
loading.init.update-description: "Whats new? {@description}"
loading.init.data-provider: "Data provider initializing..."
loading.init.vaults: "Vaults initializing..."
loading.init.events-handlers: "Events handlers initializing..."
loading.init.commands: "Commands initializing..."
loading.init.vaults-loaded: "Loaded {@amount} vaults."
loading.data-provider: "Data provider was set to {@name}"
loading.init.successful: "SVault initialized(took {@time}ms)."

loading.error.folder: "Can`t create folder {@path}, disabling plugin..."
loading.error.resource: "Can`t copy resource resource: {@err}, disabling plugin..."
Expand Down
9 changes: 0 additions & 9 deletions src/main/resources/lang/rus.yml
Original file line number Diff line number Diff line change
@@ -1,16 +1,7 @@
loading.init.start: "Инициализация SVault V_{@ver} от Sergey Dertan..."
loading.init.folders: "Создание папок..."
loading.init.settings: "Инициализация настроек..."
loading.init.libraries: "Загрузка библиотек..."
loading.init.update-available: "Доступна новая версия SVault! {@ver}."
loading.init.update-description: "Что нового? {@description}"
loading.init.data-provider: "Инициализация поставщика данных..."
loading.init.vaults: "Инициализация хранилищ..."
loading.init.events-handlers: "Инициализация обработчика событий..."
loading.init.commands: "Инициализация команд..."
loading.init.vaults-loaded: "Загружно {@amount} хранилищ."
loading.data-provider: "Выбранный поставщик данных: {@name}"
loading.init.successful: "Инициализация SVault завершена за {@time} мс."

loading.error.folder: "Не удалось создать папку {@path}, отключение плагина..."
loading.error.resource: "Не удалось скопировать данные: {@err}, отключение плагина..."
Expand Down

0 comments on commit 0ef65da

Please sign in to comment.