RestartGTEvent.java
mudlibs/tinylib/src/net/sourceforge/pain/tinylib/logic/event/guitool/event/RestartGTEvent.java · 665 B
From the archive pain_0_45.tgz
Download the archive « Back to the archive contents
package net.sourceforge.pain.tinylib.logic.event.guitool.event;
import net.sourceforge.pain.*;
import net.sourceforge.pain.tinylib.logic.event.guitool.*;
import net.sourceforge.pain.tinylib.plugin.shutdown.*;
public class RestartGTEvent extends GuiEventHandler {
public void processEvent() {
String[] data = (String[]) packet.data;
if ("shutdown".equals(data[0])) {
ShutdownTimer t = (ShutdownTimer) Codebase.getPluginManager().getPlugin("shutdown.ShutdownTimer");
t.reset(10, true);
send("Shutdown in 10 seconds");
} else {
send("Wrong action");
}
}
}