File tree Expand file tree Collapse file tree
src/main/java/xyz/webmc/wlib/api/command Expand file tree Collapse file tree Original file line number Diff line number Diff line change 33 <modelVersion >4.0.0</modelVersion >
44 <groupId >xyz.webmc</groupId >
55 <artifactId >wlib</artifactId >
6- <version >1.2.1 -SNAPSHOT</version >
6+ <version >1.2.2 -SNAPSHOT</version >
77 <distributionManagement >
88 <repository >
99 <id >github</id >
Original file line number Diff line number Diff line change 33import java .util .List ;
44import java .util .logging .Level ;
55
6+ import dev .colbster937 .reflect .MirrorSafe ;
7+ import dev .colbster937 .util .ExceptionStacker ;
68import org .bukkit .Bukkit ;
79import org .bukkit .ChatColor ;
810import org .bukkit .command .Command ;
911import org .bukkit .command .CommandSender ;
1012import org .bukkit .entity .Player ;
1113
12- import dev .colbster937 .reflect .MirrorSafe ;
13- import dev .colbster937 .util .ExceptionStacker ;
14-
1514public abstract class WCommand extends Command {
1615 private static final String PERMISSION_MSG = ChatColor .RED + "You don't have permission to use this command." ;
1716 protected WCommand (final String name , final String ... aliases ) {
1817 super (name , "" , "/" + name , List .of (aliases ));
1918 super .setPermissionMessage (PERMISSION_MSG );
2019 }
2120
22- protected abstract boolean run (final CommandSender sender , final String label , final String [] args ) throws Throwable ;
21+ protected abstract boolean run (final CommandSender sender , final String label , final String [] args );
2322
24- protected List <String > tab (final CommandSender sender , final String label , final String [] args ) throws Throwable {
23+ protected List <String > tab (final CommandSender sender , final String label , final String [] args ) {
2524 return List .of ();
2625 }
2726
You can’t perform that action at this time.
0 commit comments