Esempio n. 1
0
 @Override
 public boolean onCommand(CommandSender sender, Command command, String label, String[] args) {
   switch (command.getName()) {
     case "example":
       try {
         this.getLogger()
             .info(
                 Utils.readFile(new File(this.getDataFolder(), "string.txt"))
                     + " "
                     + sender.getName());
       } catch (IOException e) {
         throw new RuntimeException(e);
       }
       break;
   }
   return true;
 }