@EventHandler
	public void onPlayerCommandPreprocess(PlayerCommandPreprocessEvent e) {
		Player player = e.getPlayer();
		String playername = player.getName();
		String cmd = e.getMessage();
		
		CmdLogger cl = new CmdLogger();
		cl.cmdLogger(playername, cmd);
		cl.privMsgLogger(playername, cmd);
		
		//The following will add a fee to the /tp command:
		String[] args = cmd.split(" ");
	    if(args[0].equalsIgnoreCase("/tp") && (args.length > 1)) {
			if (player.hasPermission("larvikgaming.freetp")) {
				player.sendMessage(color + "[LarvikGaming] Du er frikjent fra teleporterings avgiften!");
			}
			else {
				int charge = larvikGaming.getConfig().getInt("TeleportCharge", 30);
				Economy econ = server.getServicesManager().getRegistration(Economy.class).getProvider();
				EconomyResponse r = econ.withdrawPlayer(playername, charge);
				if (r.transactionSuccess()) {
					player.sendMessage(color + "[LarvikGaming] Teleportering koster " + charge + " Dollar!");
					player.sendMessage(color + "[LarvikGaming] Uansett om du blir teleportert eller ikke.");
				}
				else {
					e.setCancelled(true);
					player.sendMessage(color + "[LarvikGaming] Denne kommandoen koster " + charge + " Dollar!");
					player.sendMessage(color + "[LarvikGaming] Du har IKKE " + charge + " Dollar og kan dermed ikke teleportere!");
				}
			}
		}
	}