File tree Expand file tree Collapse file tree 1 file changed +0
-6
lines changed
src/main/java/net/javadiscord/javabot/systems/help/commands Expand file tree Collapse file tree 1 file changed +0
-6
lines changed Original file line number Diff line number Diff line change 1818import net .javadiscord .javabot .systems .help .dao .HelpTransactionRepository ;
1919import net .javadiscord .javabot .systems .help .dao .HelpTransactionRepository .MonthInYear ;
2020import net .javadiscord .javabot .systems .help .model .HelpAccount ;
21- import net .javadiscord .javabot .util .Checks ;
2221import net .javadiscord .javabot .util .ExceptionLogger ;
2322import net .javadiscord .javabot .util .Pair ;
2423import net .javadiscord .javabot .util .Plotter ;
@@ -75,11 +74,6 @@ public void execute(@NotNull SlashCommandInteractionEvent event) {
7574 User user = event .getOption ("user" , event ::getUser , OptionMapping ::getAsUser );
7675 boolean plot = event .getOption ("plot" , false , OptionMapping ::getAsBoolean );
7776
78- if (plot && user .getIdLong ()!=event .getUser ().getIdLong () && !Checks .hasStaffRole (botConfig , event .getMember ())) {
79- Responses .error (event , "You can only plot your own help XP history." ).queue ();
80- return ;
81- }
82-
8377 long totalThanks = dbActions .count (
8478 "SELECT COUNT(id) FROM help_channel_thanks WHERE helper_id = ?" ,
8579 s -> s .setLong (1 , user .getIdLong ())
You can’t perform that action at this time.
0 commit comments