Set the disguise radius in config if not set
This commit is contained in:
parent
e7f283dc25
commit
0898c3c387
@ -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());
|
||||
|
Loading…
Reference in New Issue
Block a user