- Download the SQLite driver .jar from here: https://bitbucket.org/xerial/sqlite-jdbc/downloads
- Open your BungeeCord/Waterfall jar with any archiver program
- Open the SQLite driver with any archiver program
- Copy the contents (the "org"-folder) from the SQLite driver to BungeeCord
- Now just use the SQLite settings in the ChangeSkin config.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<? | |
/** | |
* Generates a offline-mode player UUID. | |
* | |
* @param $username string | |
* @return string | |
*/ | |
public static function constructOfflinePlayerUuid($username) { | |
//extracted from the java code: | |
//new GameProfile(UUID.nameUUIDFromBytes(("OfflinePlayer:" + name).getBytes(Charsets.UTF_8)), name)); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.github.games647.changeskin.core.model.mojang.auth; | |
import com.github.games647.changeskin.core.model.PlayerProfile; | |
public class Account { | |
private final PlayerProfile profile; | |
private final String accessToken; | |
public Account(PlayerProfile profile, String accessToken) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import com.google.common.base.Charsets; | |
import java.util.UUID; | |
public class OfflineUUID { | |
public static void main(String[] test) throws Exception { | |
UUID.nameUUIDFromBytes(("OfflinePlayer:" + "playerName").getBytes(Charsets.UTF_8)); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[Origin no minimize (low enough for notification but still allows dialogs (e.g. close dialog))] | |
Description=Origin no minimize (low enough for notification but still allows dialogs (e.g. close dialog)) | |
fsplevel=1 | |
fsplevelrule=2 | |
skipswitcher=true | |
skipswitcherrule=2 | |
title=Origin | |
titlematch=1 | |
types=1 | |
wmclass=steam_(proton|app_[0-9]) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class AnnotationHelper { | |
private static final String ANNOTATIONS = "annotations"; | |
public static final String ANNOTATION_DATA = "annotationData"; | |
public static boolean isJDK7OrLower() { | |
boolean jdk7OrLower = true; | |
try { | |
Class.class.getDeclaredField(ANNOTATIONS); | |
} catch (NoSuchFieldException e) { | |
//Willfully ignore all exceptions |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package org.sample; | |
import java.lang.invoke.LambdaMetafactory; | |
import java.lang.invoke.MethodHandle; | |
import java.lang.invoke.MethodHandles; | |
import java.lang.invoke.MethodHandles.Lookup; | |
import java.lang.invoke.MethodType; | |
import java.lang.reflect.InvocationTargetException; | |
import java.lang.reflect.Method; | |
import java.util.UUID; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
""" | |
Copyright 2011 Tyler Kennedy <tk@tkte.ch>. All rights reserved. | |
Redistribution and use in source and binary forms, with or without modification, are | |
permitted provided that the following conditions are met: | |
1. Redistributions of source code must retain the above copyright notice, this list of | |
conditions and the following disclaimer. | |
2. Redistributions in binary form must reproduce the above copyright notice, this list |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import java.io.File; | |
import java.lang.management.ManagementFactory; | |
import java.text.DateFormat; | |
import java.text.SimpleDateFormat; | |
import java.util.Date; | |
import javax.management.InstanceNotFoundException; | |
import javax.management.MBeanException; | |
import javax.management.MBeanServer; | |
import javax.management.MalformedObjectNameException; | |
import javax.management.ObjectName; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
* HTTP Keep alives are enabled by default and hold a connection up to a couple of minutes. | |
* By default up to 5 connections per destination are hold up | |
* You can disable it by calling explicitly disconnect | |
(Note: For android you should call disconnect always) | |
* For re-use the following has to be true | |
* share similar settings like same **instance** of SSLFactory | |
* Server has to accept keep-alive (no close) | |
* Fully consume inputstream, outputstream and errorstream and close it | |
(Since JDK 6: spawns a extra thread that consume some remaining data if the length is longer it's not used for keep-alives) |
NewerOlder