Skip to content

Instantly share code, notes, and snippets.

View TobiasGrether's full-sized avatar

Tobias Grether TobiasGrether

View GitHub Profile

Contributor License Agreement

The following terms are used throughout this agreement:

  • You - the person or legal entity including its affiliates asked to accept this agreement. An affiliate is any entity that controls or is controlled by the legal entity, or is under common control with it.
  • Project - is an umbrella term that refers to any and all WaterdogPE open source projects.
  • Contribution - any type of work that is submitted to a Project, including any modifications or additions to existing work.
  • Submitted - conveyed to a Project via a pull request, commit, issue, or any form of electronic, written, or verbal communication with WaterdogPE, contributors or maintainers.

1. Grant of Copyright License.

{
"type":"object",
"status":"ADDED",
"diff":[
{
"property":"Assigned",
"previousValue":[
],
"currentValue":[

Keybase proof

I hereby claim:

  • I am TobiasG-DE on github.
  • I am tobiasgrether (https://keybase.io/tobiasgrether) on keybase.
  • I have a public key whose fingerprint is A0A6 9A23 D006 68F9 0E00 F6E6 CC3E CA94 3539 2F7D

To claim this, I am signing this object:

@TobiasGrether
TobiasGrether / RuntimeAddiotion.java
Created March 20, 2020 16:56
Adding Servers on Runtime for Waterdog
static void registerServer(String servername, String ip, int port) {
ServerInfo info = Main.getInstance().getProxy().constructServerInfo(servername, new InetSocketAddress(ip, port), servername, false, true, "bedrock");
Main.getInstance().getProxy().getServers().put(servername, info);
if (servername.startsWith("Lobby") || servername.startsWith("BetaLobby")) {
Main.lobbys.put(info.getName(), info);
Iterables.get(Main.getInstance().getProxy().getConfig().getListeners(), 0).getServerPriority().add(info.getName());
}
System.out.println("Registered Server " + servername);
}
#region LICENSE
// The contents of this file are subject to the Common Public Attribution
// License Version 1.0. (the "License"); you may not use this file except in
// compliance with the License. You may obtain a copy of the License at
// https://github.com/NiclasOlofsson/MiNET/blob/master/LICENSE.
// The License is based on the Mozilla Public License Version 1.1, but Sections 14
// and 15 have been added to cover use of software over a computer network and
// provide for limited attribution for the Original Developer. In addition, Exhibit A has
// been modified to be consistent with Exhibit B.
[
{"id":0,"meta":0,"name":"minecraft:air","states":{}},
{"id":1,"meta":0,"name":"minecraft:stone","states":{"stone_type":{"val":"stone","type":8}}},
{"id":1,"meta":1,"name":"minecraft:stone","states":{"stone_type":{"val":"granite","type":8}}},
{"id":1,"meta":2,"name":"minecraft:stone","states":{"stone_type":{"val":"granite_smooth","type":8}}},
{"id":1,"meta":3,"name":"minecraft:stone","states":{"stone_type":{"val":"diorite","type":8}}},
{"id":1,"meta":4,"name":"minecraft:stone","states":{"stone_type":{"val":"diorite_smooth","type":8}}},
{"id":1,"meta":5,"name":"minecraft:stone","states":{"stone_type":{"val":"andesite","type":8}}},
{"id":1,"meta":6,"name":"minecraft:stone","states":{"stone_type":{"val":"andesite_smooth","type":8}}},
{"id":2,"meta":0,"name":"minecraft:grass","states":{}},
[
{"id":0,"meta":0,"name":"minecraft:air","states":{}},
{"id":1,"meta":0,"name":"minecraft:stone","states":{"stone_type":{"val":"stone","type":8}}},
{"id":1,"meta":1,"name":"minecraft:stone","states":{"stone_type":{"val":"granite","type":8}}},
{"id":1,"meta":2,"name":"minecraft:stone","states":{"stone_type":{"val":"granite_smooth","type":8}}},
{"id":1,"meta":3,"name":"minecraft:stone","states":{"stone_type":{"val":"diorite","type":8}}},
{"id":1,"meta":4,"name":"minecraft:stone","states":{"stone_type":{"val":"diorite_smooth","type":8}}},
{"id":1,"meta":5,"name":"minecraft:stone","states":{"stone_type":{"val":"andesite","type":8}}},
{"id":1,"meta":6,"name":"minecraft:stone","states":{"stone_type":{"val":"andesite_smooth","type":8}}},
{"id":2,"meta":0,"name":"minecraft:grass","states":{}},