@Override
	public boolean onCommand(final CommandSender sender, Command cmdObj, String label, final String[] args) {
		if(!(sender instanceof Player)) {
			return false;
		} else {
			
			if(!((Player)sender).hasPermission("kitpvp.setspawnpoint")) {
				sender.sendMessage(ChatColor.RED + "You do not have permission to execute this command!");
				sender.sendMessage(ChatColor.YELLOW + "(kitpvp.setspawnpoint)");
				return true;
			}
			
			if(args.length <= 0 || args.length > 1) {
				sender.sendMessage(ChatColor.YELLOW + "Usage: /pvpp [1-4]");
				return true;
			} else {
				Integer point;
				try {
					point = Integer.parseInt(args[0]);
				} catch (NumberFormatException e) {
					sender.sendMessage(ChatColor.RED + args[0] + " is not a valid number!");
					return true;
				}
				switch(point) {
					case 1:
						Main.spawn1 = ((Player)sender).getLocation();
						sender.sendMessage(ChatColor.GREEN + "Spawn 1 set!");
						break;
					case 2:
						Main.spawn2 = ((Player)sender).getLocation();
						sender.sendMessage(ChatColor.GREEN + "Spawn 2 set!");
						break;
					case 3:
						Main.spawn3 = ((Player)sender).getLocation();
						sender.sendMessage(ChatColor.GREEN + "Spawn 3 set!");
						break;
					case 4:
						Main.spawn4 = ((Player)sender).getLocation();
						sender.sendMessage(ChatColor.GREEN + "Spawn 4 set!");
						break;
					default:
						sender.sendMessage(ChatColor.YELLOW + "Usage: /pvpp [1-4]");
						return true;
				}
				return true;
			}
		}
	}