mirror of
https://github.com/KAMKEEL/CustomNPC-Plus.git
synced 2026-11-13 18:24:10 +00:00
27 lines
637 B
Java
27 lines
637 B
Java
package kamkeel.npcs.network.enums;
|
|
|
|
import noppes.npcs.CustomNpcsPermissions;
|
|
|
|
public enum EnumRequestPacket {
|
|
|
|
ok;
|
|
|
|
public CustomNpcsPermissions.Permission permission = null;
|
|
public boolean needsNpc = false;
|
|
|
|
EnumRequestPacket() {}
|
|
EnumRequestPacket(noppes.npcs.CustomNpcsPermissions.Permission permission, boolean npc) {
|
|
this(permission);
|
|
}
|
|
EnumRequestPacket(boolean npc) {
|
|
needsNpc = npc;
|
|
}
|
|
EnumRequestPacket(CustomNpcsPermissions.Permission permission) {
|
|
this.permission = permission;
|
|
}
|
|
public boolean hasPermission() {
|
|
return permission != null;
|
|
}
|
|
|
|
}
|