diff --git a/src/main/java/cactusServer/entities/Player.java b/src/main/java/cactusServer/entities/Player.java index d13ab22..2841ef7 100644 --- a/src/main/java/cactusServer/entities/Player.java +++ b/src/main/java/cactusServer/entities/Player.java @@ -49,6 +49,7 @@ setPosition(character.getPosition()); setAngle(character.getAngle()); setAreaURI(character.getAreaURI()); + setCharacterURI(characterURI); } public String getInstanceURI() { @@ -151,6 +152,11 @@ private void updateEmoteType(EmoteState.EmoteType animationClassToStart) { this.emoteState.setEmoteType(animationClassToStart); } + + public void changeCharacter(String characterURI) { + writeCharacterData(this.characterURI); + readCharacterData(characterURI); + } public void destroy() { writeCharacterData(characterURI);