mirror of
https://github.com/BentoBoxWorld/Challenges.git
synced 2024-11-28 13:36:06 +01:00
Check for null world
This commit is contained in:
parent
5c2f2ecfc7
commit
e8b4129c3a
@ -656,7 +656,11 @@ public class ChallengesManager
|
||||
public void migrateDatabase(User user, World world)
|
||||
{
|
||||
world = Util.getWorld(world);
|
||||
|
||||
if (world == null) {
|
||||
this.addon.logError("No such world!");
|
||||
return;
|
||||
}
|
||||
|
||||
if (user.isPlayer())
|
||||
{
|
||||
Utils.sendMessage(user, user.getTranslation("challenges.messages.migrate-start"));
|
||||
|
Loading…
Reference in New Issue
Block a user