Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public class DeviantSchematics extends JavaPlugin
- /* */ {
- /* */ public static final String loggername = "DESchematics";
- /* */ public static File signsfolder;
- /* 24 */ private static List<BaseCommand> commands = new ArrayList();
- /* 25 */ public static Map<Player, String> creatingDSignPlayers = new HashMap();
- /* 26 */ public static Method method = null;
- /* */
- /* 28 */ private static DSchematicSignsConfig signConfig = new DSchematicSignsConfig();
- /* */
- /* */ public void onDisable()
- /* */ {
- /* 32 */ method = null;
- /* */ try {
- /* 34 */ getSignConfig().saveAllSchematicSigns();
- /* */ } catch (IOException ex) {
- /* 36 */ Log.severe("DESchematics", "Could not save Schematics! " + ex);
- /* */ }
- /* 38 */ Log.info("DESchematics", "Disabled successfully.");
- /* */ }
- /* */
- /* */ public void onEnable()
- /* */ {
- /* 43 */ signsfolder = new File(getDataFolder() + "\\signs");
- /* 44 */ PluginManager pm = getServer().getPluginManager();
- /* 45 */ setUpDE(pm.getPlugin("DECore"));
- /* 46 */ setUpMethod(pm.getPlugin("iConomy"));
- /* */
- /* 48 */ commands.add(new BuyCommand());
- /* 49 */ commands.add(new ConfigCommand());
- /* 50 */ commands.add(new CreateCommand());
- /* 51 */ commands.add(new DeleteCommand());
- /* 52 */ commands.add(new HelpCommand());
- /* 53 */ commands.add(new InfoCommand());
- /* 54 */ commands.add(new SetCommand());
- /* */
- /* 56 */ getServer().getPluginManager().registerEvents(new RegisterStuffListener(this), this);
- /* 57 */ getServer().getPluginManager().registerEvents(new SignEditPermissionsListener(), this);
- /* 58 */ getServer().getPluginManager().registerEvents(new BreakBoardListener(), this);
- /* 59 */ getServer().getPluginManager().registerEvents(new SelectionListener(), this);
- /* 60 */ getServer().getPluginManager().registerEvents(new WritingListener(), this);
- /* */
- /* 62 */ getSignConfig().loadSchematicSigns();
- /* 63 */ Log.info("DESchematics", "Enabled successfully.");
- /* */ }
- ...
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement