@Override
	public boolean onCommand(CommandSender sender, Command cmd, String commandLabel, String[] args) {
		if(sender instanceof ConsoleCommandSender) {
			sender.sendMessage("§cThis can only be run in game!");
			return true;
		}
		if(args.length== 1)
			return false;
		if(args.length>= 3) {
			Player p = (Player) sender;
			String action = args[1];
			String name = args[2];

			if(action.equalsIgnoreCase("create")) {
				if(GameManager.isGame(name)) {
					p.sendMessage("§cA game with that name already exists!");
					return true;
				}

				WorldEditPlugin we = Main.we;
				Selection selection = we.getSelection(p);

				if(selection!= null) {
					Location min = selection.getMinimumPoint();
					Location max = selection.getMaximumPoint();
					Game game = new Game(name, min, max);
					GameManager.addGame(game);
					p.sendMessage(Main.tag+"§aNew game called §3"+name+"§a created!");
				} else
					p.sendMessage("§cPlease make a selection first!");
			} else if(action.equalsIgnoreCase("delete")) {
				if(GameManager.isGame(name)) {
					Game game = GameManager.getGame(name);
					game.delete();
					GameManager.removeGame(game);
					p.sendMessage(Main.tag+name+"§a deleted!");
				} else {
					p.sendMessage("§cA game with that name could not be found!");
				}
			}



		}
		return true;
	}