public boolean onCommand(CommandSender sender, Command cmd, String commandLabel, String[] args) {
		if (commandLabel.equalsIgnoreCase("locationset")) {
			if (args.length == 1){
				if (sender instanceof Player) {
						if (sender.hasPermission("EventManager.LSet")){
						File locations = new File (plugin.getDataFolder() + ("locations.yml"));
						FileConfiguration spawns = YamlConfiguration.loadConfiguration(locations);
						if(args[1].equalsIgnoreCase("spleef")){
							int locnum = spawns.getInt("Event.Spleef.Loc");
							int newnum = locnum + 1;
							spawns.set("Event.Spleef.Loc", newnum);
							Player player = (Player) sender;
							Location loc = player.getLocation();
							int x = loc.getBlockX();
							int y = loc.getBlockY();
							int z = loc.getBlockZ();
							World world = player.getWorld();
							createspawn(x, y, z, world, locnum, "Spleef");
							try {
								spawns.save("locations.yml");
							} catch (IOException e) {
								e.printStackTrace();
							}
						}else if(args[1].equalsIgnoreCase("buildoff")){
							int locnum = spawns.getInt("Event.Buildoff.Loc");
							int newnum = locnum + 1;
							spawns.set("Event.Buildoff.Loc", newnum);
							Player player = (Player) sender;
							Location loc = player.getLocation();
							int x = loc.getBlockX();
							int y = loc.getBlockY();
							int z = loc.getBlockZ();
							World world = player.getWorld();
							createspawn(x, y, z, world, locnum, "Buildoff");
							try {
								spawns.save("locations.yml");
							} catch (IOException e) {
								e.printStackTrace();
							}
						}
					}else{
						sender.sendMessage("YOu don't have permission for this command.");
					}
				}else{
					sender.sendMessage("You must be a player to use this command!");
				}
			}else{
				sender.sendMessage("Usage: /locationset [eventtype]");
			}
		}
		return true;
	}