25 lines
496 B
Java
25 lines
496 B
Java
|
|
package com.imaginarycode.minecraft.redisbungee.api.payloads;
|
|
|
|
public abstract class AbstractPayload {
|
|
|
|
private final String senderProxy;
|
|
|
|
public AbstractPayload(String proxyId) {
|
|
this.senderProxy = proxyId;
|
|
}
|
|
|
|
public AbstractPayload(String senderProxy, String className) {
|
|
this.senderProxy = senderProxy;
|
|
}
|
|
|
|
public String senderProxy() {
|
|
return senderProxy;
|
|
}
|
|
|
|
public String getClassName() {
|
|
return getClass().getName();
|
|
}
|
|
|
|
}
|