@Override
	public void onEnable() {
		File dbFile = new File(DatabaseConnector.SAVE_FILE_DIRECTORY + "\\"
				+ DatabaseConnector.SAVE_FILE_NAME);

		swDataClass = new SWDataClass();
		// Check if database file exists
		if (!dbFile.exists()) {
			// No file, so set one up
			getLogger().info("No database file found! Creating a new file.");
			try {
				// Create the directories for ShopWatch
				File directories = new File(
						DatabaseConnector.SAVE_FILE_DIRECTORY);
				directories.mkdirs();

				// Create the save file
				directories.createNewFile();
				dbFile.createNewFile();

				// Notify the logger
				getLogger().info("File created successfully.");
			} catch (IOException e) {
				e.printStackTrace();
			}
			DatabaseConnector.saveTransactions(swDataClass);
		} else {
			DatabaseConnector.loadTransactions(swDataClass);
		}

		// Set up listeners
		ShopListener shopListener = new ShopListener(this);
		LoginListener loginListener = new LoginListener(this);
		PluginManager pluginManager = getServer().getPluginManager();
		pluginManager.registerEvents(shopListener, this);
		pluginManager.registerEvents(loginListener, this);

		// We made it! Output a happy message.
		getLogger().info("ShopWatch has been enabled!");
	}