Exemplo n.º 1
0
 public PacketGrenadeUpdate processGrenade(Grenade grenade) {
   setName(grenade.getName());
   setShortName(grenade.getShortName());
   setType(grenade.getType());
   setAmount(grenade.getAmount());
   setStartAmount(grenade.getStartAmount());
   setExplosionSize(grenade.getExplosionSize());
   setTimeBeforeExplosion(grenade.getTimeBeforeExplosion());
   setDamage(grenade.getDamage());
   setStunTime(grenade.getStunTime());
   setUUID(grenade.getUUID());
   return this;
 }
Exemplo n.º 2
0
 @Override
 public void run(SpoutPlayer sp) {
   RushMe.getInstance()
       .getLogger()
       .debugLog(Level.INFO, "Running PacketGrenadeUpdate for " + sp.getName());
   Grenade grenade = GrenadeManager.getGrenade(name);
   if (grenade == null) {
     grenade =
         GrenadeManager.createGrenade(
             name,
             null,
             shortName,
             type,
             startAmount,
             explosionSize,
             timeBeforeExplosion,
             damage,
             stunTime,
             uuid);
   }
   grenade.setAmount(amount);
 }