mirror of
https://github.com/mcMMO-Dev/mcMMO.git
synced 2024-11-22 13:16:45 +01:00
Minor fix with prefixother
This commit is contained in:
parent
2e406479a6
commit
8085b43258
@ -215,7 +215,7 @@ public class vMinecraftCommands{
|
||||
}
|
||||
|
||||
if(args.length >= 3 && args[1] != null){
|
||||
vMinecraftUsers.players.findProfile(player).setTag(args[2]);
|
||||
vMinecraftUsers.players.findProfile(other).setTag(args[2]);
|
||||
}
|
||||
return EXIT_SUCCESS;
|
||||
}
|
||||
@ -232,6 +232,10 @@ public class vMinecraftCommands{
|
||||
return EXIT_SUCCESS;
|
||||
}
|
||||
|
||||
if(args.length >= 1 && args[0] != null){
|
||||
player.setPrefix(args[0]);
|
||||
}
|
||||
if(args.length >= 2 && args[1] != null){
|
||||
//Check if the prefix is too long
|
||||
if(args[1].length() > 15)
|
||||
{
|
||||
@ -239,12 +243,7 @@ public class vMinecraftCommands{
|
||||
+ "The prefix you entered was too long.");
|
||||
return EXIT_SUCCESS;
|
||||
}
|
||||
|
||||
if(args.length >= 1 && args[0] != null){
|
||||
player.setPrefix(args[1]);
|
||||
}
|
||||
if(args.length >= 2 && args[1] != null){
|
||||
vMinecraftUsers.players.findProfile(player).setTag(args[2]);
|
||||
vMinecraftUsers.players.findProfile(player).setTag(args[1]);
|
||||
}
|
||||
return EXIT_SUCCESS;
|
||||
}
|
||||
@ -393,6 +392,7 @@ public class vMinecraftCommands{
|
||||
+ Colors.LightBlue + "b"
|
||||
+ Colors.Rose + "c"
|
||||
+ Colors.LightPurple + "d"
|
||||
+ Colors.Yellow + "e"
|
||||
+ Colors.White + "f");
|
||||
return EXIT_SUCCESS;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user