Auto-add item to eternal

This commit is contained in:
LCastr0 2016-12-14 00:25:00 -02:00 committed by cnr
parent dd7f5d7513
commit f2aef9a873

View File

@ -11,7 +11,10 @@ import org.bukkit.Color;
import org.bukkit.FireworkEffect; import org.bukkit.FireworkEffect;
import org.bukkit.Material; import org.bukkit.Material;
import org.bukkit.entity.Player; import org.bukkit.entity.Player;
import org.bukkit.event.EventHandler;
import org.bukkit.event.player.PlayerJoinEvent;
import mineplex.core.common.Rank;
import mineplex.core.common.util.F; import mineplex.core.common.util.F;
import mineplex.core.common.util.LineFormat; import mineplex.core.common.util.LineFormat;
import mineplex.core.common.util.UtilFirework; import mineplex.core.common.util.UtilFirework;
@ -104,4 +107,13 @@ public class EternalTaunt extends TauntGadget
} }
} }
@EventHandler
public void titanOwner(PlayerJoinEvent event)
{
if (Manager.getClientManager().Get(event.getPlayer()).GetRank().has(Rank.ETERNAL))
{
Manager.getDonationManager().Get(event.getPlayer()).AddUnknownSalesPackagesOwned(getName());
}
}
} }