Guest User

Untitled

a guest
Jan 16th, 2020
90
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. @Plugin(id = "test", name = "TestPlug" ,version = "0.0.1")
  2. public class main {
  3.     @Inject
  4.     public Logger logger;
  5.     @Inject
  6.     private Game game;
  7.  
  8.     @Listener
  9.     public void onServerStart(GameStartedServerEvent e){
  10.         logger.info("Start test plugin--------");
  11.     }
  12.  
  13.     @Listener
  14.     public void addEffect(ChangeEntityPotionEffectEvent.Gain e){
  15.        logger.info("Работай скатіна");
  16.         logger.info(e.getPotionEffect().getType().getName());
  17.     }
  18.  
  19. }
RAW Paste Data