Changed disguise perm to YOUTUBE

This commit is contained in:
Jonathan Williams 2015-06-25 04:57:56 -05:00
parent 3a06b54b7f
commit 5bdb90b459
2 changed files with 12 additions and 7 deletions

View File

@ -18,7 +18,7 @@ public class DisguiseCommand extends CommandBase<ArcadeManager>
{
public DisguiseCommand(ArcadeManager plugin)
{
super(plugin, Rank.OWNER, new Rank[] {Rank.OWNER}, "disguise");
super(plugin, Rank.YOUTUBE, new Rank[] {Rank.YOUTUBE}, "disguise");
}
@Override
@ -37,13 +37,18 @@ public class DisguiseCommand extends CommandBase<ArcadeManager>
{
try
{
GameProfile profile = new ProfileLoader(UUIDFetcher.getUUIDOf(args[0]).toString(), args[0]).loadProfile();
final GameProfile profile = new ProfileLoader(UUIDFetcher.getUUIDOf(args[0]).toString(), args[0]).loadProfile();
DisguisePlayer playerDisguise = new DisguisePlayer(caller, profile);
Plugin.GetDisguise().disguise(playerDisguise);
UtilPlayer.message(caller, C.cGreen + C.Bold + "Disguise Active: " + ChatColor.RESET + args[0]);
Bukkit.getServer().getScheduler().runTask(Plugin.getPlugin(), new Runnable()
{
public void run()
{
DisguisePlayer playerDisguise = new DisguisePlayer(caller, profile);
Plugin.GetDisguise().disguise(playerDisguise);
UtilPlayer.message(caller, C.cGreen + C.Bold + "Disguise Active: " + ChatColor.RESET + args[0]);
}
});
}
catch (Exception e)
{

Binary file not shown.