boy0001 0b0461f5f4 Update checking, plugin disabling, code cleanup
Now compatible with various plugin managers:
- Will attempt to unload depending/softdepending plugins on disable
- Will attempt to load disabled depending/softdepending plugins on
enable

Update checking:
- Currently subscribed to be notified about updates on Spigot
- You can use "/plot update" to download the latest version, or specify
a new source URL

Plugin disabling:
- new command /plot disable
2015-07-06 19:38:37 +10:00

87 lines
2.2 KiB
Java

package com.intellectualcrafters.plot;
import java.io.File;
import java.util.UUID;
import org.bukkit.generator.ChunkGenerator;
import com.intellectualcrafters.plot.config.C;
import com.intellectualcrafters.plot.generator.HybridUtils;
import com.intellectualcrafters.plot.listeners.APlotListener;
import com.intellectualcrafters.plot.object.PlotPlayer;
import com.intellectualcrafters.plot.util.BlockManager;
import com.intellectualcrafters.plot.util.ChunkManager;
import com.intellectualcrafters.plot.util.EconHandler;
import com.intellectualcrafters.plot.util.EventUtil;
import com.intellectualcrafters.plot.util.InventoryUtil;
import com.intellectualcrafters.plot.util.PlayerManager;
import com.intellectualcrafters.plot.util.SetupUtils;
import com.intellectualcrafters.plot.util.TaskManager;
import com.intellectualcrafters.plot.uuid.UUIDWrapper;
public interface IPlotMain {
public void log(String message);
public File getDirectory();
public File getFile();
public void disable();
public String getVersion();
public void handleKick(UUID uuid, C c);
public TaskManager getTaskManager();
public void runEntityTask();
public void registerCommands();
public void registerPlayerEvents();
public void registerInventoryEvents();
public void registerPlotPlusEvents();
public void registerForceFieldEvents();
public void registerWorldEditEvents();
public void registerTNTListener();
public EconHandler getEconomyHandler();
public BlockManager initBlockManager();
public EventUtil initEventUtil();
public ChunkManager initChunkManager();
public SetupUtils initSetupUtils();
public HybridUtils initHybridUtils();
public UUIDWrapper initUUIDHandler();
public InventoryUtil initInventoryUtil();
public boolean initPlotMeConverter();
public void unregister(PlotPlayer player);
public ChunkGenerator getGenerator(String world, String name);
public APlotListener initPlotListener();
public void registerChunkProcessor();
public void registerWorldEvents();
public PlayerManager initPlayerManager();
public boolean checkVersion(int major, int minor, int minor2);
public void loadPlugin(String plugin);
}