Java IRC bot
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

ReloadCommand.java 673B

12345678910111213141516171819202122232425
  1. /*
  2. * To change this template, choose Tools | Templates
  3. * and open the template in the editor.
  4. */
  5. package com.md87.charliebravo.commands;
  6. import com.md87.charliebravo.Command;
  7. import com.md87.charliebravo.CommandOptions;
  8. import com.md87.charliebravo.InputHandler;
  9. import com.md87.charliebravo.Response;
  10. /**
  11. *
  12. * @author chris
  13. */
  14. @CommandOptions(requireAuthorisation=true,requireLevel=100)
  15. public class ReloadCommand implements Command {
  16. public void execute(InputHandler handler, Response response, String line) throws Exception {
  17. handler.getConfig().getConfigfile().read();
  18. response.sendMessage("I have reloaded my config file", true);
  19. }
  20. }