Add Coal Cents economy
This commit is contained in:
@@ -0,0 +1,24 @@
|
||||
package com.librewiki.coalgov.model;
|
||||
|
||||
import java.util.UUID;
|
||||
|
||||
public record CoalNpc(
|
||||
long id,
|
||||
int citizensId,
|
||||
UUID accountUuid,
|
||||
String npcType,
|
||||
String name,
|
||||
long zoneId,
|
||||
String world,
|
||||
double x,
|
||||
double y,
|
||||
double z
|
||||
) {
|
||||
public boolean trader() {
|
||||
return npcType.equalsIgnoreCase("TRADER");
|
||||
}
|
||||
|
||||
public boolean worker() {
|
||||
return npcType.equalsIgnoreCase("WORKER");
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user