ServerEvent.java 399 Bytes
Newer Older
KingRainbow44's avatar
KingRainbow44 committed
1
2
3
4
5
6
7
8
9
10
11
12
package emu.grasscutter.server.event;

/**
 * An event that is related to the internals of the server.
 */
public abstract class ServerEvent extends Event {
    protected final Type type;
    
    public ServerEvent(Type type) {
        this.type = type;
    }
    
KingRainbow44's avatar
KingRainbow44 committed
13
14
15
16
    public Type getServerType() {
        return this.type;
    }
    
KingRainbow44's avatar
KingRainbow44 committed
17
18
19
20
21
    public enum Type {
        DISPATCH,
        GAME
    }
}