Change the use of the disguiseclone command to use references instead

This commit is contained in:
libraryaddict
2014-06-02 10:03:59 +12:00
parent 4b55a24444
commit 31a0b68bdc
7 changed files with 177 additions and 113 deletions

View File

@@ -119,6 +119,7 @@ public class LibsDisguises extends JavaPlugin {
DisguiseConfig.setMaxHealthDeterminedByDisguisedEntity(getConfig().getBoolean("MaxHealthDeterminedByEntity"));
DisguiseConfig.setDisguiseEntityExpire(getConfig().getInt("DisguiseEntityExpire"));
DisguiseConfig.setDisguiseCloneExpire(getConfig().getInt("DisguiseCloneExpire"));
DisguiseConfig.setMaxClonedDisguises(getConfig().getInt("DisguiseCloneSize"));
try {
// Here I use reflection to set the plugin for Disguise..
// Kind of stupid but I don't want open API calls for a commonly used object.