mirror of
https://github.com/mcMMO-Dev/mcMMO.git
synced 2024-11-26 23:26:45 +01:00
Fixed ArrayIndexOutOfBounds with mmoedit
This commit is contained in:
parent
de1539ac1d
commit
577badf4d8
@ -33,8 +33,6 @@ public class MmoeditCommand implements CommandExecutor {
|
|||||||
sender.sendMessage("This command requires permissions.");
|
sender.sendMessage("This command requires permissions.");
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
PlayerProfile PPt = Users.getOfflineProfile(args[0]);
|
|
||||||
|
|
||||||
if (!(sender instanceof Player))
|
if (!(sender instanceof Player))
|
||||||
{
|
{
|
||||||
@ -44,6 +42,7 @@ public class MmoeditCommand implements CommandExecutor {
|
|||||||
return true;
|
return true;
|
||||||
} else if (args.length == 3)
|
} else if (args.length == 3)
|
||||||
{
|
{
|
||||||
|
PlayerProfile PPt = Users.getOfflineProfile(args[0]);
|
||||||
if(!PPt.isLoaded())
|
if(!PPt.isLoaded())
|
||||||
{
|
{
|
||||||
sender.sendMessage("Player does not exist in the database!");
|
sender.sendMessage("Player does not exist in the database!");
|
||||||
@ -77,6 +76,7 @@ public class MmoeditCommand implements CommandExecutor {
|
|||||||
}
|
}
|
||||||
if (args.length == 3)
|
if (args.length == 3)
|
||||||
{
|
{
|
||||||
|
PlayerProfile PPt = Users.getOfflineProfile(args[0]);
|
||||||
if(!PPt.isLoaded())
|
if(!PPt.isLoaded())
|
||||||
{
|
{
|
||||||
sender.sendMessage("Player does not exist in the database!");
|
sender.sendMessage("Player does not exist in the database!");
|
||||||
|
Loading…
Reference in New Issue
Block a user