Skip to content

Instantly share code, notes, and snippets.

public class DeadManSwitch implements Runnable{
public static DeadManSwitch instance;
private Thread serverThread = null;
private MinecraftServer server = null;
private BlockingQueue<Long> queue = new ArrayBlockingQueue<Long>();
public DeadManSwitch(MinecraftServer server, Thread serverThread){
this.server = server;
this.serverThread = serverThread;