Added options to choose how long a disguise entity and disguise clone command is valid for

This commit is contained in:
libraryaddict
2014-06-02 04:14:35 +12:00
parent 4262221133
commit b999f48fef
6 changed files with 35 additions and 5 deletions

View File

@@ -117,6 +117,8 @@ public class LibsDisguises extends JavaPlugin {
DisguiseConfig.setCollectPacketsEnabled(getConfig().getBoolean("PacketsEnabled.Collect"));
DisguiseConfig.setMetadataPacketsEnabled(getConfig().getBoolean("PacketsEnabled.Metadata"));
DisguiseConfig.setMaxHealthDeterminedByDisguisedEntity(getConfig().getBoolean("MaxHealthDeterminedByEntity"));
DisguiseConfig.setDisguiseEntityExpire(getConfig().getInt("DisguiseEntityExpire"));
DisguiseConfig.setDisguiseCloneExpire(getConfig().getInt("DisguiseCloneExpire"));
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.