@EventHandler(priority = EventPriority.MONITOR)
	public void onPlayerChat(final AsyncPlayerChatEvent event) {
		plugin.getServer().getScheduler().scheduleSyncDelayedTask(plugin, new Runnable() {

			public void run() {
				final Player player = event.getPlayer();
				World world = player.getWorld();
				final String worldname = world.getName();
				final String playername = player.getName();
				final String msg = event.getMessage();
				final double x = (int) Math.floor(player.getLocation().getX());
				final double y = (int) Math.floor(player.getLocation().getY());
				final double z = (int) Math.floor(player.getLocation().getZ());
				if(getConfig.PlayerChat()) {
					if (getConfig.logFilesEnabled()) {
						plugin.getServer().getScheduler().scheduleAsyncDelayedTask(plugin,new Runnable(){

							public void run() {
								Boolean staff = false;
								if (player.hasPermission("PlayerLogger.staff")) {
									staff = true;
								}
								filehandler.logChat(playername, msg, worldname, x, y, z, staff);
							}}, 1L);
					}
					if (getConfig.MySQLEnabled()) {

						plugin.getServer().getScheduler().scheduleAsyncDelayedTask(plugin,new Runnable(){

							public void run() {
								Boolean staff = false;
								if (player.hasPermission("PlayerLogger.staff")) {
									staff = true;
								}
								addData.add(playername,"chat", msg, x, y, z, worldname, staff);
							}}, 1L);

					}
				}
			}
		}, 1L);}