16 char limit and Steve Skin.
This commit is contained in:
parent
5809359449
commit
6947b54e66
@ -119,24 +119,26 @@ public class DisguiseCommand extends CommandBase<HubManager> implements Listener
|
||||
return;
|
||||
}
|
||||
}
|
||||
if(args[0].equalsIgnoreCase("Chiss") || args[0].equalsIgnoreCase("Sterling_") || args[0].equalsIgnoreCase("defek7"))
|
||||
if(args[0].length() > 16)
|
||||
{
|
||||
UtilPlayer.message(caller, C.cRed + C.Bold + "nice try ;D");
|
||||
UtilPlayer.message(caller, C.cRed + C.Bold + "Invalid Disguise Name: " + ChatColor.RESET + args[0]);
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
try
|
||||
{
|
||||
CoreClient client = Plugin.GetClients().Get(caller);
|
||||
UUID uuid = UUIDFetcher.getUUIDOf(args[0]);
|
||||
try
|
||||
{
|
||||
final GameProfile profile = new ProfileLoader(uuid.toString(), args[0]).loadProfile();
|
||||
_disguisedPlayers.put(caller, profile);
|
||||
final GameProfile profile = new ProfileLoader(uuid.toString(), args[0]).loadProfile();
|
||||
_disguisedPlayers.put(caller, profile);
|
||||
}
|
||||
catch (Exception e)
|
||||
{
|
||||
UtilPlayer.message(caller, C.cRed + C.Bold + "There went something wrong!");
|
||||
uuid = UUIDFetcher.getUUIDOf("Steve");
|
||||
final GameProfile profile = new ProfileLoader(uuid.toString(), "Steve").loadProfile();
|
||||
_disguisedPlayers.put(caller, profile);
|
||||
}
|
||||
_disguisedPlayersNames.put(caller, caller.getName());
|
||||
Plugin.GetDisguise().undisguise(caller);
|
||||
|
@ -115,24 +115,26 @@ public class DisguiseCommand extends CommandBase<ArcadeManager> implements Liste
|
||||
return;
|
||||
}
|
||||
}
|
||||
if(args[0].equalsIgnoreCase("Chiss") || args[0].equalsIgnoreCase("Sterling_") || args[0].equalsIgnoreCase("defek7"))
|
||||
if(args[0].length() > 16)
|
||||
{
|
||||
UtilPlayer.message(caller, C.cRed + C.Bold + "nice try ;D");
|
||||
UtilPlayer.message(caller, C.cRed + C.Bold + "Invalid Disguise Name: " + ChatColor.RESET + args[0]);
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
try
|
||||
{
|
||||
CoreClient client = Plugin.GetClients().Get(caller);
|
||||
UUID uuid = UUIDFetcher.getUUIDOf(args[0]);
|
||||
try
|
||||
{
|
||||
final GameProfile profile = new ProfileLoader(uuid.toString(), args[0]).loadProfile();
|
||||
_disguisedPlayers.put(caller, profile);
|
||||
final GameProfile profile = new ProfileLoader(uuid.toString(), args[0]).loadProfile();
|
||||
_disguisedPlayers.put(caller, profile);
|
||||
}
|
||||
catch (Exception e)
|
||||
{
|
||||
UtilPlayer.message(caller, C.cRed + C.Bold + "There went something wrong!");
|
||||
uuid = UUIDFetcher.getUUIDOf("Alex");
|
||||
final GameProfile profile = new ProfileLoader(uuid.toString(), args[0]).loadProfile();
|
||||
_disguisedPlayers.put(caller, profile);
|
||||
}
|
||||
_disguisedPlayersNames.put(caller, caller.getName());
|
||||
Plugin.GetDisguise().undisguise(caller);
|
||||
|
Loading…
Reference in New Issue
Block a user