示例#1
0
 public static boolean run(String[] args, MobFightPlayer player) {
   if (args.length == 2) {
     if (player.isPlaying()) {
       player.kick();
       player.sendMessage("You've been kicked from game '" + player.getGame().getName() + "'");
     }
   }
   return false;
 }
示例#2
0
  @Override
  public void specialAttack(MobFightPlayer victim) {
    player.damage(5);

    if (player.getCraftPlayer().isDead()) {
      player.sendMessage(ChatColor.RED + "You crushed into him too hard and killed yourself!");
      return;
    } else {
      victim.damage(getSpecialAttackDamage());
      victim.getCraftPlayer().getLocation().add(0, 6, 0);
    }
  }