diff options
author | David Panić <david@panic.tk> | 2019-04-07 19:55:48 +0200 |
---|---|---|
committer | David Panić <david@panic.tk> | 2019-04-07 19:55:48 +0200 |
commit | e74a959d7481a4514cd91389949c68a382997706 (patch) | |
tree | 009be88d41a6a80ccb4efd76894cdd35ecb5a7a4 /src/main/java/com/redstoner/bungeeBans/json/Ban.java | |
parent | afc5c65761cae9f52f53ae7f6ecc495600cb94c9 (diff) |
Created basic ban functionality (IP bans not yet supported)
Diffstat (limited to 'src/main/java/com/redstoner/bungeeBans/json/Ban.java')
-rw-r--r-- | src/main/java/com/redstoner/bungeeBans/json/Ban.java | 49 |
1 files changed, 49 insertions, 0 deletions
diff --git a/src/main/java/com/redstoner/bungeeBans/json/Ban.java b/src/main/java/com/redstoner/bungeeBans/json/Ban.java new file mode 100644 index 0000000..d5434d5 --- /dev/null +++ b/src/main/java/com/redstoner/bungeeBans/json/Ban.java @@ -0,0 +1,49 @@ +package com.redstoner.bungeeBans.json; + +public abstract class Ban { + private String created; + private String source; + private String expires; + private String reason; + + protected Ban(String created, String source, String expires, String reason) { + this.created = created; + this.source = source; + this.expires = expires; + this.reason = reason; + } + + public abstract String getIdentifier(); + + public String getCreated() { + return created; + } + + public void setCreated(String created) { + this.created = created; + } + + public String getSource() { + return source; + } + + public void setSource(String source) { + this.source = source; + } + + public String getExpires() { + return expires; + } + + public void setExpires(String expires) { + this.expires = expires; + } + + public String getReason() { + return reason; + } + + public void setReason(String reason) { + this.reason = reason; + } +} |