Untitled

mail@pastecode.io avatar
unknown
plain_text
a month ago
526 B
1
Indexable
Never
public void DuelAssign(String arenaName, Player playerA, Player playerB) {
		List<String> tempArenaList = new ArrayList<>();
	    tempArenaList.add(playerA.getName());
	    tempArenaList.add(playerB.getName());
	    
	    Main.getInstance().getConfig().set("Arenas." + findAvailableArena() + ".Active", true);
		Main.getInstance().getConfig().set("Arenas." + findAvailableArena() + ".Players", tempArenaList);
		Main.getInstance().saveConfig();
		
		teleportPlayersToArena(findAvailableArena(), playerA, playerB);
	}
Leave a Comment