mirror of
https://github.com/mcMMO-Dev/mcMMO.git
synced 2024-11-25 14:46:46 +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){
|
if(args.length >= 3 && args[1] != null){
|
||||||
vMinecraftUsers.players.findProfile(player).setTag(args[2]);
|
vMinecraftUsers.players.findProfile(other).setTag(args[2]);
|
||||||
}
|
}
|
||||||
return EXIT_SUCCESS;
|
return EXIT_SUCCESS;
|
||||||
}
|
}
|
||||||
@ -232,19 +232,18 @@ public class vMinecraftCommands{
|
|||||||
return EXIT_SUCCESS;
|
return EXIT_SUCCESS;
|
||||||
}
|
}
|
||||||
|
|
||||||
//Check if the prefix is too long
|
|
||||||
if(args[1].length() > 15)
|
|
||||||
{
|
|
||||||
vMinecraftChat.sendMessage(player, player, Colors.Rose
|
|
||||||
+ "The prefix you entered was too long.");
|
|
||||||
return EXIT_SUCCESS;
|
|
||||||
}
|
|
||||||
|
|
||||||
if(args.length >= 1 && args[0] != null){
|
if(args.length >= 1 && args[0] != null){
|
||||||
player.setPrefix(args[1]);
|
player.setPrefix(args[0]);
|
||||||
}
|
}
|
||||||
if(args.length >= 2 && args[1] != null){
|
if(args.length >= 2 && args[1] != null){
|
||||||
vMinecraftUsers.players.findProfile(player).setTag(args[2]);
|
//Check if the prefix is too long
|
||||||
|
if(args[1].length() > 15)
|
||||||
|
{
|
||||||
|
vMinecraftChat.sendMessage(player, player, Colors.Rose
|
||||||
|
+ "The prefix you entered was too long.");
|
||||||
|
return EXIT_SUCCESS;
|
||||||
|
}
|
||||||
|
vMinecraftUsers.players.findProfile(player).setTag(args[1]);
|
||||||
}
|
}
|
||||||
return EXIT_SUCCESS;
|
return EXIT_SUCCESS;
|
||||||
}
|
}
|
||||||
@ -393,6 +392,7 @@ public class vMinecraftCommands{
|
|||||||
+ Colors.LightBlue + "b"
|
+ Colors.LightBlue + "b"
|
||||||
+ Colors.Rose + "c"
|
+ Colors.Rose + "c"
|
||||||
+ Colors.LightPurple + "d"
|
+ Colors.LightPurple + "d"
|
||||||
|
+ Colors.Yellow + "e"
|
||||||
+ Colors.White + "f");
|
+ Colors.White + "f");
|
||||||
return EXIT_SUCCESS;
|
return EXIT_SUCCESS;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user