From b1d7f30cd28e070e4a342b0fc71b9877f52dd1c5 Mon Sep 17 00:00:00 2001 From: BuildTools Date: Tue, 25 Oct 2022 21:59:10 +0200 Subject: [PATCH] + added an Instance + Added German letters --- .idea/.gitignore | 3 +++ .idea/discord.xml | 7 +++++++ .idea/encodings.xml | 6 ++++++ .idea/misc.xml | 12 ++++++++++++ .idea/vcs.xml | 6 ++++++ .../com/wolfyscript/utilities/common/WolfyUtils.java | 5 +++++ .../wolfyscript/utilities/util/EncryptionUtils.java | 2 +- 7 files changed, 40 insertions(+), 1 deletion(-) create mode 100644 .idea/.gitignore create mode 100644 .idea/discord.xml create mode 100644 .idea/encodings.xml create mode 100644 .idea/misc.xml create mode 100644 .idea/vcs.xml diff --git a/.idea/.gitignore b/.idea/.gitignore new file mode 100644 index 000000000..26d33521a --- /dev/null +++ b/.idea/.gitignore @@ -0,0 +1,3 @@ +# Default ignored files +/shelf/ +/workspace.xml diff --git a/.idea/discord.xml b/.idea/discord.xml new file mode 100644 index 000000000..d8e956166 --- /dev/null +++ b/.idea/discord.xml @@ -0,0 +1,7 @@ + + + + + \ No newline at end of file diff --git a/.idea/encodings.xml b/.idea/encodings.xml new file mode 100644 index 000000000..63e900193 --- /dev/null +++ b/.idea/encodings.xml @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git a/.idea/misc.xml b/.idea/misc.xml new file mode 100644 index 000000000..ea0b3a9d9 --- /dev/null +++ b/.idea/misc.xml @@ -0,0 +1,12 @@ + + + + + + + + \ No newline at end of file diff --git a/.idea/vcs.xml b/.idea/vcs.xml new file mode 100644 index 000000000..35eb1ddfb --- /dev/null +++ b/.idea/vcs.xml @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git a/src/main/java/com/wolfyscript/utilities/common/WolfyUtils.java b/src/main/java/com/wolfyscript/utilities/common/WolfyUtils.java index ab137f40d..a7960093b 100644 --- a/src/main/java/com/wolfyscript/utilities/common/WolfyUtils.java +++ b/src/main/java/com/wolfyscript/utilities/common/WolfyUtils.java @@ -60,6 +60,11 @@ public static boolean isProdEnv() { public abstract Chat getChat(); + //this gives out the Instance of this plugin + public static WolfyUtils getInstance() { + return getInstance(); + } + public MapperUtil getJacksonMapperUtil() { return mapperUtil; } diff --git a/src/main/java/me/wolfyscript/utilities/util/EncryptionUtils.java b/src/main/java/me/wolfyscript/utilities/util/EncryptionUtils.java index bf13fa8e6..ca0e3188b 100644 --- a/src/main/java/me/wolfyscript/utilities/util/EncryptionUtils.java +++ b/src/main/java/me/wolfyscript/utilities/util/EncryptionUtils.java @@ -37,7 +37,7 @@ public static String getBase64EncodedString(String str) { @Deprecated public static String getCode() { var random = new Random(); - var alphabet = "0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ"; + var alphabet = "0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZÄÖÜß"; final int x = alphabet.length(); StringBuilder sB = new StringBuilder(); for (int i = 0; i < 16; i++) {