From 00eaeed631cbf51c6ed4d919e5924ead18e04306 Mon Sep 17 00:00:00 2001 From: gamerover98 Date: Thu, 5 May 2022 20:11:35 +0200 Subject: [PATCH 1/2] Added the getter method for the event details --- .../intave/access/check/event/IntaveViolationEvent.java | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/main/java/de/jpx3/intave/access/check/event/IntaveViolationEvent.java b/src/main/java/de/jpx3/intave/access/check/event/IntaveViolationEvent.java index a4f985b..b075479 100644 --- a/src/main/java/de/jpx3/intave/access/check/event/IntaveViolationEvent.java +++ b/src/main/java/de/jpx3/intave/access/check/event/IntaveViolationEvent.java @@ -83,6 +83,13 @@ public String message() { return message + " (" + details.trim() + ")"; } + /** + * @return the details of this violation. + */ + public String getDetails() { + return this.details; + } + /** * Retrieve the detection message without details. * Usually in a format where it can be prefixed with the players name (e.g. "moved incorrectly") From 5a4621773e67925a02cdc82e24a38581a31919dd Mon Sep 17 00:00:00 2001 From: Richard Strunk Date: Thu, 5 May 2022 23:30:38 +0200 Subject: [PATCH 2/2] Update IntaveViolationEvent.java --- .../de/jpx3/intave/access/check/event/IntaveViolationEvent.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/de/jpx3/intave/access/check/event/IntaveViolationEvent.java b/src/main/java/de/jpx3/intave/access/check/event/IntaveViolationEvent.java index b075479..6302b22 100644 --- a/src/main/java/de/jpx3/intave/access/check/event/IntaveViolationEvent.java +++ b/src/main/java/de/jpx3/intave/access/check/event/IntaveViolationEvent.java @@ -86,7 +86,7 @@ public String message() { /** * @return the details of this violation. */ - public String getDetails() { + public String details() { return this.details; }