diff --git a/src/main/java/eu/ruekov/ruakij/LinkedBeaconTeleporters/Function.java b/src/main/java/eu/ruekov/ruakij/LinkedBeaconTeleporters/Function.java index fb98e74..00a7f96 100644 --- a/src/main/java/eu/ruekov/ruakij/LinkedBeaconTeleporters/Function.java +++ b/src/main/java/eu/ruekov/ruakij/LinkedBeaconTeleporters/Function.java @@ -27,4 +27,15 @@ public class Function { throw new InvalidPropertiesFormatException("Could not deserialize BlockLocation '"+ serialisedLoc +"'"); } } + + public static String randomString(String alphabet, int length){ + char[] alphabetChars = alphabet.toCharArray(); + + String str = ""; + Random random = new Random(); + for(int i=0; i