Advertisement
Shinmera

Untitled

Aug 29th, 2013
95
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.77 KB | None | 0 0
  1. package org.tymoonnext.bot.module.misc;
  2.  
  3. import org.tymoonnext.bot.Kizai;
  4. import org.tymoonnext.bot.event.CommandListener;
  5. import org.tymoonnext.bot.event.core.CommandEvent;
  6. import org.tymoonnext.bot.module.Module;
  7. import org.tymoonnext.bot.module.core.ext.CommandModule;
  8.  
  9. /**
  10.  *
  11.  * @author Shinmera
  12.  * @license GPLv3
  13.  * @version 0.0.0
  14.  */
  15. public class Calc extends Module implements CommandListener{
  16.  
  17.     public Calc(Kizai bot){
  18.         super(bot);
  19.         CommandModule.register(bot, "calc", "expression".split(" "), "Evaluate mathematical expressions.", this);
  20.     }
  21.    
  22.     @Override
  23.     public void shutdown() {
  24.         bot.unregisterAllCommands(this);
  25.     }
  26.  
  27.     @Override
  28.     public void onCommand(CommandEvent cmd) {
  29.         //Do your thing.
  30.     }
  31.  
  32. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement