dev.alangomes.springspigot.exception.PermissionDeniedException Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of spigot-spring-boot-starter Show documentation
Show all versions of spigot-spring-boot-starter Show documentation
Spring support for spigot plugins
package dev.alangomes.springspigot.exception;
import lombok.Getter;
import org.bukkit.command.CommandException;
@Getter
public class PermissionDeniedException extends CommandException {
private final String permission;
public PermissionDeniedException(String permission, String message) {
super(message != null ? message : "Sender didn't satisfied the condition: " + permission);
this.permission = permission;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy