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
|
@Override
|
||||||
public boolean canGiveReward(Player player)
|
public boolean canGiveReward(Player player)
|
||||||
{
|
{
|
||||||
return _donationManager.Get(player.getName()).OwnsUnknownPackage(_packageName);
|
return !_donationManager.Get(player.getName()).OwnsUnknownPackage(_packageName);
|
||||||
}
|
}
|
||||||
|
|
||||||
protected String getPackageName()
|
protected String getPackageName()
|
||||||
|
@ -539,7 +539,7 @@ public class CastleSiege extends TeamGame
|
|||||||
|
|
||||||
if (this.WorldTimeSet > 24100)
|
if (this.WorldTimeSet > 24100)
|
||||||
{
|
{
|
||||||
SetCustomWinLine(_kingName + ChatColor.RESET + " has survived the seige!");
|
SetCustomWinLine(_kingName + ChatColor.RESET + " has survived the siege!");
|
||||||
|
|
||||||
AnnounceEnd(GetTeam(ChatColor.AQUA));
|
AnnounceEnd(GetTeam(ChatColor.AQUA));
|
||||||
|
|
||||||
|
@ -21,10 +21,17 @@ public class DamageTakenStatTracker extends StatTracker<Game>
|
|||||||
Player damagee = event.GetDamageePlayer();
|
Player damagee = event.GetDamageePlayer();
|
||||||
if (damagee == null)
|
if (damagee == null)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
addStat(damagee, "Damage Taken", (int) Math.round(event.GetDamage()), false, false);
|
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)
|
if (getGame().GetKit(damagee) != null)
|
||||||
|
{
|
||||||
addStat(damagee, getGame().GetKit(damagee).GetName() + " Damage Taken", (int) Math.round(event.GetDamage()), false, false);
|
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