Open XxPoNaGeXx opened 2 years ago
DiscordSRV] Plugin DiscordSRV v1.25.0 generated an exception while executing task 906556 18.03 21:38:07 [Server] INFO org.springframework.expression.spel.SpelEvaluationException: EL1004E: Method call: Method getPlayer1() cannot be found on type at.pcgamingfreaks.MarriageMaster.Bukkit.API.Events.MarriedEvent
Never used the that plugin, but if I understand there documentation correctly, this should work:
MarriedEvent:
#event.getMarriageData().getPartner1().getName()
and #event.getMarriageData().getPartner2().getName()
DivorcedEvent:
#event.getPlayer1().getName()
and #event.getPlayer2().getName()
Replace getName()
with getDisplayName()
for the display name.
Hi, there I'm using discordsrv alerts to announce marriages and divorces.
Is what I have so far but this returns
Any idea on how to get this to return actual usernames/displaynames?