Add Coal Cents economy
This commit is contained in:
@@ -0,0 +1,17 @@
|
||||
package com.librewiki.coalgov.model;
|
||||
|
||||
public record LandRegion(
|
||||
long id,
|
||||
String name,
|
||||
String world,
|
||||
int x1,
|
||||
int z1,
|
||||
int x2,
|
||||
int z2,
|
||||
LandClass landClass,
|
||||
long createdAt
|
||||
) {
|
||||
public boolean contains(String worldName, int x, int z) {
|
||||
return world.equals(worldName) && x >= x1 && x <= x2 && z >= z1 && z <= z2;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user