Jump to content
  • 0

Change Name/title


Virusgr

Question

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)

Link to comment
Share on other sites

3 answers to this question

Recommended Posts

Guest
This topic is now closed to further replies.


×
×
  • Create New...