File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed
src/main/java/world/bentobox/bentobox/api/user Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -40,7 +40,8 @@ public synchronized boolean notify(User user, String message) {
4040 try {
4141 Notification lastNotification = notificationCache .get (user );
4242 long now = System .currentTimeMillis ();
43- if (now >= lastNotification .getTime () + NOTIFICATION_DELAY * 1000 || !message .equals (lastNotification .getMessage ())) {
43+
44+ if (now >= lastNotification .getTime () + (NOTIFICATION_DELAY * 1000 ) || !message .equals (lastNotification .getMessage ())) {
4445 notificationCache .put (user , new Notification (message , now ));
4546 user .sendRawMessage (message );
4647 return true ;
@@ -51,11 +52,11 @@ public synchronized boolean notify(User user, String message) {
5152 }
5253 }
5354
54- public class Notification {
55+ private class Notification {
5556 private final String message ;
5657 private final long time ;
5758
58- public Notification (String message , long time ) {
59+ private Notification (String message , long time ) {
5960 this .message = message ;
6061 this .time = time ;
6162 }
You can’t perform that action at this time.
0 commit comments