mirror of
https://github.com/TotalFreedomMC/TF-LibsDisguises.git
synced 2024-11-11 01:17:16 +00:00
Set the disguise radius in config if not set
This commit is contained in:
parent
e7f283dc25
commit
0898c3c387
1 changed files with 4 additions and 0 deletions
|
@ -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 a new issue