From 0898c3c3877388d2462cdb61d03722db0cda7fc8 Mon Sep 17 00:00:00 2001 From: Andrew Date: Mon, 22 Jul 2013 22:36:38 +1200 Subject: [PATCH] Set the disguise radius in config if not set --- src/me/libraryaddict/disguise/LibsDisguises.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/me/libraryaddict/disguise/LibsDisguises.java b/src/me/libraryaddict/disguise/LibsDisguises.java index f8fa4336..1e590da6 100644 --- a/src/me/libraryaddict/disguise/LibsDisguises.java +++ b/src/me/libraryaddict/disguise/LibsDisguises.java @@ -214,6 +214,10 @@ public class LibsDisguises extends JavaPlugin { DisguiseAPI.setVelocitySent(true); addPacketListeners(); saveDefaultConfig(); + if (!getConfig().contains("DisguiseRadiusMax")) + getConfig().set("DisguiseRadiusMax", getConfig().getInt("DisguiseRadiusMax")); + if (!getConfig().contains("UndisguiseRadiusMax")) + getConfig().set("UndisguiseRadiusMax", getConfig().getInt("UndisguiseRadiusMax")); DisguiseListener listener = new DisguiseListener(this); Bukkit.getPluginManager().registerEvents(listener, this); getCommand("disguise").setExecutor(new DisguiseCommand());