Jump to content
  • 0

Change Name/title


Question

Posted

I'm trying to change player's appearence(name/title) while on death match event but without luck.I changed getVisibleName method in PcAppearance like this

 

public final String getVisibleName()

{

if( DMEvent.isPlayerParticipant(_owner.getObjectId()) && DMEvent.isStarted())

{

return "Player";

}

if (_visibleName == null)

{

_visibleName = getOwner().getName();

}

return _visibleName;

}

but when the event ends name "Player" and title "Death Match" remain and even stored at db.Any ideas?(I'm using freya)

3 answers to this question

Recommended Posts

  • 0
Posted

thanks but i couldn't see it(100 posts).Anyway i made a map for everything i want to save and loaded the real values after the event ended.Can be locked

Guest
This topic is now closed to further replies.


×
×
  • Create New...