TheRedCraft Posted June 8, 2017 Share Posted June 8, 2017 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 More sharing options...
Baustein Posted June 8, 2017 Share Posted June 8, 2017 Dann hast du doch eigentlich schon fast alles. Das einzige, was fehlt, ist das .toString() bei der UUID in der if-Abfrage. Liebe Grüße, Baustein Link to comment Share on other sites More sharing options...
TheRedCraft Posted June 8, 2017 Author Share Posted June 8, 2017 danke Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now