From 976d6a5e86f68f8add11153e986fffb1856e91a4 Mon Sep 17 00:00:00 2001 From: boy0001 Date: Sat, 10 Jan 2015 02:48:18 +1100 Subject: [PATCH] We're stealing some code from PlotMe --- .../intellectualcrafters/plot/PlotMain.java | 24 +++++++++++++++++++ 1 file changed, 24 insertions(+) diff --git a/PlotSquared/src/main/java/com/intellectualcrafters/plot/PlotMain.java b/PlotSquared/src/main/java/com/intellectualcrafters/plot/PlotMain.java index 6eb73eb40..8327632a5 100644 --- a/PlotSquared/src/main/java/com/intellectualcrafters/plot/PlotMain.java +++ b/PlotSquared/src/main/java/com/intellectualcrafters/plot/PlotMain.java @@ -57,6 +57,7 @@ import org.bukkit.event.EventHandler; import org.bukkit.event.Listener; import org.bukkit.event.world.WorldLoadEvent; import org.bukkit.generator.ChunkGenerator; +import org.bukkit.plugin.Plugin; import org.bukkit.plugin.RegisteredServiceProvider; import org.bukkit.plugin.java.JavaPlugin; @@ -1241,6 +1242,29 @@ import java.util.concurrent.TimeUnit; @Override @SuppressWarnings("deprecation") final public void onEnable() { + + /* + * Oh, is this what it looks like? + * Are we stealing coding from PlotMe again? + */ + + //Plugin competition = Bukkit.getPluginManager().getPlugin("PlotSquared"); + Plugin competition = Bukkit.getPluginManager().getPlugin("PlotMe"); + if (competition != null) { + getPluginLoader().disablePlugin(competition); + } + /* + * Oh no! How unethical of us to steal this above code from PlotMe and only change 1 line of code! + * If only we were good enough to code something like this ourselves! + * + * You guys are hilarious how you intentionally try to make it difficult for your users to to switch plot plugins. + * If we didn't know any better, we'd say you're abusing your position as the most used plot plugin. + * + * Side note from Empire92: Your continued bullying doesn't give me much incentive to support PlotMe with any of my other plugins: + * - VoxelSniperRegions + * - BiomeGenerator + */ + PlotMain.main = this; // Setup the logger mechanics setupLogger();