Removed support for the Residence plugin

This commit is contained in:
David Berdik 2017-03-19 20:32:16 -04:00
parent 16e881b734
commit fbf7bba09e
3 changed files with 0 additions and 28 deletions

View File

@ -6,7 +6,6 @@
<classpathentry kind="lib" path="libs/GriefPrevention.jar"/>
<classpathentry kind="lib" path="libs/MassiveCore.jar"/>
<classpathentry kind="lib" path="libs/PreciousStones.jar"/>
<classpathentry kind="lib" path="libs/Residence.jar"/>
<classpathentry kind="lib" path="libs/Towny.jar"/>
<classpathentry kind="lib" path="libs/worldedit-bukkit-6.1.jar"/>
<classpathentry kind="lib" path="libs/worldguard-6.1.jar"/>

View File

@ -4,7 +4,6 @@ import net.theprogrammersworld.herobrine.hooks.CustomItemsHook;
import net.theprogrammersworld.herobrine.hooks.FactionsHook;
import net.theprogrammersworld.herobrine.hooks.GriefPreventionHook;
import net.theprogrammersworld.herobrine.hooks.PreciousStonesHook;
import net.theprogrammersworld.herobrine.hooks.ResidenceHook;
import net.theprogrammersworld.herobrine.hooks.TownyHook;
import net.theprogrammersworld.herobrine.hooks.WorldGuardHook;
@ -19,7 +18,6 @@ public class Support {
private boolean B_CustomItems = false;
private boolean B_PreciousStones;
private boolean B_Factions;
private ResidenceHook ResidenceCore;
private GriefPreventionHook GriefPreventionCore;
private TownyHook TownyCore;
private WorldGuardHook WorldGuard;
@ -28,7 +26,6 @@ public class Support {
private FactionsHook Factions;
public Support() {
ResidenceCore = new ResidenceHook();
GriefPreventionCore = new GriefPreventionHook();
TownyCore = new TownyHook();
CustomItems = new CustomItemsHook();
@ -68,10 +65,6 @@ public class Support {
}
public void CheckForPlugins() {
if (ResidenceCore.Check()) {
B_Residence = true;
Herobrine.log.info("[Herobrine] Residence plugin detected on server");
}
if (GriefPreventionCore.Check()) {
B_GriefPrevention = true;
Herobrine.log.info("[Herobrine] GriefPrevention plugin detected on server");
@ -100,9 +93,6 @@ public class Support {
}
public boolean isSecuredArea(final Location loc) {
if (B_Residence) {
return ResidenceCore.isSecuredArea(loc);
}
if (B_GriefPrevention) {
return GriefPreventionCore.isSecuredArea(loc);
}

View File

@ -1,17 +0,0 @@
package net.theprogrammersworld.herobrine.hooks;
import com.bekvon.bukkit.residence.*;
import org.bukkit.Bukkit;
import org.bukkit.Location;
public class ResidenceHook {
public boolean Check() {
return Bukkit.getServer().getPluginManager().getPlugin("Residence") != null;
}
public boolean isSecuredArea(final Location loc) {
return Residence.getResidenceManager().getByLoc(loc) != null;
}
}