From 079146162978bc33a768c8e1dcd3fc9b75c93bec Mon Sep 17 00:00:00 2001 From: libraryaddict Date: Fri, 11 Jul 2014 16:37:34 +1200 Subject: [PATCH] Change setSkin in playerDisguise to return the disguise --- .../disguise/disguisetypes/PlayerDisguise.java | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/src/me/libraryaddict/disguise/disguisetypes/PlayerDisguise.java b/src/me/libraryaddict/disguise/disguisetypes/PlayerDisguise.java index f37fa33f..2e61cdc5 100644 --- a/src/me/libraryaddict/disguise/disguisetypes/PlayerDisguise.java +++ b/src/me/libraryaddict/disguise/disguisetypes/PlayerDisguise.java @@ -95,7 +95,7 @@ public class PlayerDisguise extends TargetedDisguise { } @Deprecated - public void setSkin(String skinToUse) { + public PlayerDisguise setSkin(String skinToUse) { this.skinToUse = skinToUse; if (skinToUse == null) { this.currentLookup = null; @@ -123,6 +123,7 @@ public class PlayerDisguise extends TargetedDisguise { } } } + return this; } /** @@ -130,9 +131,10 @@ public class PlayerDisguise extends TargetedDisguise { * * @param gameProfile * GameProfile + * @return */ @Deprecated - public void setSkin(WrappedGameProfile gameProfile) { + public PlayerDisguise setSkin(WrappedGameProfile gameProfile) { if (gameProfile == null) { this.gameProfile = null; this.skinToUse = null; @@ -143,7 +145,7 @@ public class PlayerDisguise extends TargetedDisguise { this.skinToUse = gameProfile.getName(); this.gameProfile = ReflectionManager.getGameProfileWithThisSkin( gameProfile.getId() != null ? UUID.fromString(gameProfile.getId()) : null, getName(), gameProfile); - + return this; } } \ No newline at end of file