Jump to content

ArrayList


Recommended Posts

wie kann ich in einer arraylist eine uuid Speichern und wieder abfragen Das habe ich

public static List<String> banned = new ArrayList<String>();


Main.banned.add(p.getUniqueId().toString());


	@EventHandler(priority = EventPriority.HIGHEST)
	public void OnPreJoin(AsyncPlayerPreLoginEvent e){
		if(Main.banned.contains(e.getUniqueId())){
			e.disallow(Result.KICK_BANNED, "Du wurdest Gespärt!");
		}

 

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...
B
B