From f672b8557bdc8e3f23709d73459f2d556eda6a24 Mon Sep 17 00:00:00 2001 From: yoyosource Date: Tue, 19 Dec 2023 20:08:39 +0100 Subject: [PATCH 1/2] Add BauweltMember.isBuild and BauweltMember.isSupervisor --- src/de/steamwar/sql/BauweltMember.java | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/de/steamwar/sql/BauweltMember.java b/src/de/steamwar/sql/BauweltMember.java index 37be705..549a7aa 100644 --- a/src/de/steamwar/sql/BauweltMember.java +++ b/src/de/steamwar/sql/BauweltMember.java @@ -102,4 +102,12 @@ public class BauweltMember { delete.update(bauweltID, memberID); memberCache.remove(memberID); } + + public boolean isBuild() { + return worldEdit; + } + + public boolean isSupervisor() { + return world; + } } From abb6af2d7d00665b41967949c25f3e73f7973075 Mon Sep 17 00:00:00 2001 From: yoyosource Date: Tue, 19 Dec 2023 20:10:28 +0100 Subject: [PATCH 2/2] Add BauweltMember.isBuild and BauweltMember.isSupervisor --- src/de/steamwar/sql/BauweltMember.java | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/src/de/steamwar/sql/BauweltMember.java b/src/de/steamwar/sql/BauweltMember.java index 549a7aa..4efd9c3 100644 --- a/src/de/steamwar/sql/BauweltMember.java +++ b/src/de/steamwar/sql/BauweltMember.java @@ -110,4 +110,14 @@ public class BauweltMember { public boolean isSupervisor() { return world; } + + public void setBuild(boolean build) { + this.worldEdit = build; + updateDB(); + } + + public void setSupervisor(boolean supervisor) { + this.world = supervisor; + updateDB(); + } }