mirror of
https://github.com/KAMKEEL/CustomNPC-Plus.git
synced 2026-11-25 00:34:28 +00:00
Request Packet
This commit is contained in:
1 parent
702df25036
commit
c2bc9c6c11
4 files changed
+40
-5
No files matched your search
@@ -0,0 +1,26 @@
|
||||
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;
|
||||
}
|
||||
|
||||
}
|
||||
Reference in new issue
Block a user