Merge branch 'master' of github.com:Akarin-project/Akarin
This commit is contained in:
@@ -185,4 +185,9 @@ public class AkarinGlobalConfig {
|
||||
private static void enableAsyncLighting() {
|
||||
enableAsyncLighting = getBoolean("core.async-lighting.enable", enableAsyncLighting);
|
||||
}
|
||||
|
||||
public static String yggdrasilServerURL = "https://api.mojang.com/";
|
||||
private static void yggdrasilServerURL() {
|
||||
yggdrasilServerURL = getString("alternative.yggdrasil.url", yggdrasilServerURL);
|
||||
}
|
||||
}
|
||||
@@ -18,7 +18,10 @@ import java.util.Set;
|
||||
|
||||
public class YggdrasilGameProfileRepository implements GameProfileRepository {
|
||||
private static final Logger LOGGER = LogManager.getLogger();
|
||||
private static final String BASE_URL = "https://api.mojang.com/";
|
||||
// Akarin Start
|
||||
//private static final String BASE_URL = "https://api.mojang.com/";
|
||||
private static final String BASE_URL = io.akarin.server.core.AkarinGlobalConfig.yggdrasilServerURL; //Akarin
|
||||
// Akarin End
|
||||
private static final String SEARCH_PAGE_URL = BASE_URL + "profiles/";
|
||||
private static final int ENTRIES_PER_PAGE = 2;
|
||||
private static final int MAX_FAIL_COUNT = 3;
|
||||
|
||||
@@ -242,7 +242,7 @@ public class CrashReport {
|
||||
}
|
||||
|
||||
private static String i() {
|
||||
String[] astring = new String[] { "Who set us up the TNT?", "Everything's going to plan. No, really, that was supposed to happen.", "Uh... Did I do that?", "Oops.", "Why did you do that?", "I feel sad now :(", "My bad.", "I'm sorry, Dave.", "I let you down. Sorry :(", "On the bright side, I bought you a teddy bear!", "Daisy, daisy...", "Oh - I know what I did wrong!", "Hey, that tickles! Hehehe!", "I blame Dinnerbone.", "You should try our sister game, Minceraft!", "Don't be sad. I'll do better next time, I promise!", "Don't be sad, have a hug! <3", "I just don't know what went wrong :(", "Shall we play a game?", "Quite honestly, I wouldn't worry myself about that.", "I bet Cylons wouldn't have this problem.", "Sorry :(", "Surprise! Haha. Well, this is awkward.", "Would you like a cupcake?", "Hi. I'm Minecraft, and I'm a crashaholic.", "Ooh. Shiny.", "This doesn't make any sense!", "Why is it breaking :(", "Don't do that.", "Ouch. That hurt :(", "You're mean.", "This is a token for 1 free hug. Redeem at your nearest Mojangsta: [~~HUG~~]", "There are four lights!", "But it works on my machine."};
|
||||
String[] astring = new String[] { "Who set us up the TNT?", "Everything's going to plan. No, really, that was supposed to happen.", "Uh... Did I do that?", "Oops.", "Why did you do that?", "I feel sad now :(", "My bad.", "I'm sorry, Dave.", "I let you down. Sorry :(", "On the bright side, I bought you a teddy bear!", "Daisy, daisy...", "Oh - I know what I did wrong!", "Hey, that tickles! Hehehe!", "I blame Dinnerbone.", "You should try our sister game, Minceraft!", "Don't be sad. I'll do better next time, I promise!", "Don't be sad, have a hug! <3", "I just don't know what went wrong :(", "Shall we play a game?", "Quite honestly, I wouldn't worry myself about that.", "I bet Cylons wouldn't have this problem.", "Sorry :(", "Surprise! Haha. Well, this is awkward.", "Would you like a cupcake?", "Hi. I'm Minecraft, and I'm a crashaholic.", "Ooh. Shiny.", "This doesn't make any sense!", "Why is it breaking :(", "Don't do that.", "Ouch. That hurt :(", "You're mean.", "This is a token for 1 free hug. Redeem at your nearest Mojangsta: [~~HUG~~]", "There are four lights!", "But it works on my machine.", "Oh oh oh, Akarin feel so sad, we should ready some chocolate.", "Boom, Some bad things happened", "Oh no, It shouldn't happend!"};
|
||||
|
||||
try {
|
||||
return astring[(int) (SystemUtils.getMonotonicNanos() % (long) astring.length)];
|
||||
|
||||
Submodule work/Paper updated: def0033929...3eeec2ec11
Reference in New Issue
Block a user