-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathPetPlugin.java
More file actions
24 lines (19 loc) · 772 Bytes
/
PetPlugin.java
File metadata and controls
24 lines (19 loc) · 772 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
import java.util.logging.Logger;
public class PetPlugin extends Plugin {
private PetListener listener = new PetListener();
protected static final Logger log = Logger.getLogger("Minecraft");
public static String name = "Pet Plugin for hMod B124";
public static String version = "0.1";
protected PropertiesFile config = new PropertiesFile("PetMod.txt");
public void initialize() {
/* Add in listener overrides here */
etc.getLoader().addListener(PluginLoader.Hook.COMMAND, listener, this, PetListener.Priority.MEDIUM);
etc.getLoader().addListener(PluginLoader.Hook.PLAYER_MOVE, listener, this, PetListener.Priority.MEDIUM);
}
public void enable() {
log.info(name + " was enabled.");
}
public void disable() {
log.info(name + " was disabled.");
}
}