Loads, but still uses some depricated features will update those next.

This commit is contained in:
Famous_Longwing 2024-02-08 22:22:01 -05:00
parent 84df0ae5c7
commit baf0cc671e
2 changed files with 5 additions and 2 deletions

View File

@ -150,6 +150,7 @@
<groupId>net.essentialsx</groupId>
<artifactId>EssentialsX</artifactId>
<version>2.20.1</version>
<scope>provided</scope>
</dependency>
<dependency>

View File

@ -86,9 +86,11 @@ public class RealEstate extends JavaPlugin
return;
}
}
if((ess = (Essentials)getServer().getPluginManager().getPlugin("Essentials")) != null)
if(getServer().getPluginManager().getPlugin("Essentials") != null)
{
this.log.info("Found Essentials, using version " + ess.getDescription().getVersion());
org.bukkit.plugin.Plugin ess=getServer().getPluginManager().getPlugin("Essentials");
this.log.info("Found Essentials, using version " + ess.getDescription().getVersion());
}
this.config = new Config();
this.config.loadConfig();// loads config or default