示例#1
0
 @EventHandler
 public void onSec(SecondEvent event) {
   if (HG.HG.gameTime % 240 == 0)
     for (Gamer g : Gamer.getGamers())
       if (g.getKit() == this) {
         g.getPlayer().getInventory().addItem(getItemss());
         g.getPlayer()
             .sendMessage(
                 ChatColor.GREEN + ChatColor.BOLD.toString() + "You got a new batch of pots!");
       }
 }
示例#2
0
 protected boolean hasAbillity(Player p) {
   return Gamer.getGamer(p).getKit() == this;
 }