Fix formatting

This commit is contained in:
Rammelkast committed 2022-01-15 17:03:32 +01:00
1 parent 3a48e8c602
commit c3fffbd68a
1 file changed
+33 -32
@@ -31,43 +31,44 @@ import com.rammelkast.anticheatreloaded.util.User;
*/ */
public final class PlayerPunishEvent extends Event implements Cancellable { public final class PlayerPunishEvent extends Event implements Cancellable {
private static final HandlerList handlers = new HandlerList(); private static final HandlerList handlers = new HandlerList();
private final User user; private final User user;
private final List<String> actions; private final List<String> actions;
private boolean cancelled;
public PlayerPunishEvent(final User user, final List<String> actions) { private boolean cancelled;
this.user = user;
this.actions = actions;
}
/** public PlayerPunishEvent(final User user, final List<String> actions) {
* Get the {@link com.rammelkast.anticheatreloaded.util.User} who failed the check this.user = user;
* this.actions = actions;
* @return a {@link com.rammelkast.anticheatreloaded.util.User} }
*/
public User getUser() {
return user;
}
/** /**
* Get the list of actions the punishment will perform * Get the {@link com.rammelkast.anticheatreloaded.util.User} who will be
* * punished
* @return a a list of punishment strings *
*/ * @return a {@link com.rammelkast.anticheatreloaded.util.User}
public List<String> getActions() { */
return actions; public User getUser() {
} return user;
}
public HandlerList getHandlers() { /**
return handlers; * Get the list of actions the punishment will perform
} *
* @return a a list of punishment strings
public static HandlerList getHandlerList() { */
return handlers; public List<String> getActions() {
} return actions;
}
public HandlerList getHandlers() {
return handlers;
}
public static HandlerList getHandlerList() {
return handlers;
}
@Override @Override
public boolean isCancelled() { public boolean isCancelled() {