Minor fixes
This commit is contained in:
parent
6eed36f0ee
commit
e6797582f9
@ -1,22 +0,0 @@
|
||||
package mineplex.core.join;
|
||||
|
||||
import org.bukkit.event.EventHandler;
|
||||
import org.bukkit.event.player.PlayerJoinEvent;
|
||||
import org.bukkit.event.player.PlayerQuitEvent;
|
||||
|
||||
import mineplex.core.common.util.F;
|
||||
|
||||
public class JoinQuit
|
||||
{
|
||||
@EventHandler
|
||||
public void Join(PlayerJoinEvent event)
|
||||
{
|
||||
event.setJoinMessage(F.sys("Join", event.getPlayer().getName()));
|
||||
}
|
||||
|
||||
@EventHandler
|
||||
public void Quit(PlayerQuitEvent event)
|
||||
{
|
||||
event.setQuitMessage(F.sys("Quit", event.getPlayer().getName()));
|
||||
}
|
||||
}
|
@ -35,7 +35,7 @@ public class UnknownPackageReward extends AbstractReward
|
||||
@Override
|
||||
public boolean canGiveReward(Player player)
|
||||
{
|
||||
return _donationManager.Get(player.getName()).OwnsUnknownPackage(_packageName);
|
||||
return !_donationManager.Get(player.getName()).OwnsUnknownPackage(_packageName);
|
||||
}
|
||||
|
||||
protected String getPackageName()
|
||||
|
@ -539,7 +539,7 @@ public class CastleSiege extends TeamGame
|
||||
|
||||
if (this.WorldTimeSet > 24100)
|
||||
{
|
||||
SetCustomWinLine(_kingName + ChatColor.RESET + " has survived the seige!");
|
||||
SetCustomWinLine(_kingName + ChatColor.RESET + " has survived the siege!");
|
||||
|
||||
AnnounceEnd(GetTeam(ChatColor.AQUA));
|
||||
|
||||
|
@ -23,8 +23,15 @@ public class DamageTakenStatTracker extends StatTracker<Game>
|
||||
return;
|
||||
|
||||
addStat(damagee, "Damage Taken", (int) Math.round(event.GetDamage()), false, false);
|
||||
if (event.GetDamagerPlayer(true) != null)
|
||||
addStat(damagee, "Damage Taken PvP ", (int) Math.round(event.GetDamage()), false, false);
|
||||
|
||||
if (getGame().GetKit(damagee) != null)
|
||||
{
|
||||
addStat(damagee, getGame().GetKit(damagee).GetName() + " Damage Taken", (int) Math.round(event.GetDamage()), false, false);
|
||||
|
||||
if (event.GetDamagerPlayer(true) != null)
|
||||
addStat(damagee, getGame().GetKit(damagee).GetName() + " Damage Taken PvP ", (int) Math.round(event.GetDamage()), false, false);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user