Skip to content

Instantly share code, notes, and snippets.

View chaseking's full-sized avatar
⛰️

Chase King chaseking

⛰️
View GitHub Profile
@stephan-gh
stephan-gh / ServerListAPI.java
Last active February 29, 2024 20:05
API to modify some advanced Minecraft server list data.
/*
* ServerListAPI - API to modify some advanced Minecraft server list data
* Copyright (C) 2013 Minecrell
* You are not allowed to use this API to fake online players on a production server.
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
@hice3000
hice3000 / materials.yml
Created June 26, 2013 15:22
This is just a yaml "library" of minecraft items, written for those who have to translate item ids into english names. If an item has a data value, it is written behind an underscore "_".
1: Stone
2: Grass
3: Dirt
4: Cobblestone
5: Wooden Plank (Oak)
5_1: Wooden Plank (Spruce)
5_2: Wooden Plank (Birch)
5_3: Wooden Plank (Jungle)
6: Sapling (Oak)
6_1: Sapling (Spruce)
@aadnk
aadnk / Ability.java
Last active December 4, 2018 17:03
A simple cooldown system with charges.
package com.comphenix.example;
import java.util.HashMap;
import java.util.Map;
import java.util.concurrent.TimeUnit;
import org.bukkit.entity.Player;
public class Ability {
/**
@aadnk
aadnk / CancellationDetector.java
Last active March 30, 2024 15:23
A class that allows you to detect which plugin cancelled a given event.
package com.comphenix.example;
import java.lang.reflect.Field;
import java.lang.reflect.Method;
import java.util.ArrayList;
import java.util.EnumMap;
import java.util.Iterator;
import java.util.List;
import org.bukkit.event.Cancellable;
@Tzeentchful
Tzeentchful / ScoreboardManager.java
Last active December 15, 2015 03:29
A manager to help with setting up of scoreboards in bukkit.
public class ScoreboardManager {
/**
* Here be dragons! I have done some testing, need to do more.
*
* No comments for you. This was hard to code so it will be hard to read.
* :P i'll add comments when i get time.
*
*/
package no.jckf.slplib;
import java.io.*;
import java.net.InetSocketAddress;
import java.net.Socket;
import java.net.SocketException;
import java.nio.charset.Charset;
public final class MinecraftServer {
private String address = "localhost";