All Downloads are FREE. Search and download functionalities are using the official Maven repository.

ru.cwcode.tkach.config.commands.SaveAllCommand Maven / Gradle / Ivy

The newest version!
package ru.cwcode.tkach.config.commands;

import ru.cwcode.commands.executor.CommonExecutor;
import ru.cwcode.tkach.config.base.Config;
import ru.cwcode.tkach.config.base.manager.ConfigManager;

import static ru.cwcode.tkach.config.server.ServerPlatform.l10n;

public class SaveAllCommand> extends CommonExecutor {
  ConfigManager configManager;
  
  public SaveAllCommand(ConfigManager configManager) {
    this.configManager = configManager;
  }
  
  @Override
  public void executeForPlayer() {
    configManager.saveAll();
    sender.sendMessage(l10n.get("config.command.executed"));
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy