Skip to content

Commit

Permalink
* Refactoring.
Browse files Browse the repository at this point in the history
  • Loading branch information
DxsSucuk committed Jul 8, 2022
1 parent 72e3fc5 commit 9ba150b
Show file tree
Hide file tree
Showing 5 changed files with 17 additions and 13 deletions.
14 changes: 7 additions & 7 deletions src/main/java/de/presti/ree6/addons/Addon.java
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@
/**
* Created a new Local-Addon
*
* @param name Addon Name.
* @param author Addon Author.
* @param version Addon Version.
* @param name Add-on Name.
* @param author Add-on Author.
* @param version Add-on Version.
* @param apiVersion Ree6 Version used for the Addon.
* @param path Path to the Main-Class in the JAR.
* @param file The actual JAR as File.
Expand All @@ -16,9 +16,9 @@ public record Addon(String name, String author, String version,
String apiVersion, String path, File file) {

/**
* Get the Addon Name.
* Get the Add-on Name.
*
* @return Addon Name.
* @return Add-on Name.
*/
public String getName() {
return name;
Expand All @@ -34,9 +34,9 @@ public String getAuthor() {
}

/**
* Get the Addon Version.
* Get the Add-on Version.
*
* @return Addon Version.
* @return Add-on Version.
*/
public String getVersion() {
return version;
Expand Down
2 changes: 2 additions & 0 deletions src/main/java/de/presti/ree6/addons/impl/ChatProtector.java
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@

/**
* Created to work faster with the ChatProtector without calling the SQLWorker everytime.
* @deprecated This command will be removed soon. In addition to a new upcoming feature, which uses AI Recognition to detect "bad words".
* @since 1.7.13
*/
public class ChatProtector {

Expand Down
3 changes: 2 additions & 1 deletion src/main/java/de/presti/ree6/commands/CommandManager.java
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ public class CommandManager {

/**
* Constructor for the Command-Manager used to register every Command.
* @throws CommandInitializerException if an error occurs while initializing the Commands.
*/
public CommandManager() throws CommandInitializerException {
Main.getInstance().getLogger().info("Initializing Commands!");
Expand Down Expand Up @@ -130,7 +131,7 @@ public void addSlashCommand(JDA jda) {

if (commandAnnotation.category() == Category.HIDDEN) continue;

CommandData commandData = null;
CommandData commandData;

if (command.getCommandData() != null) {
commandData = command.getCommandData();
Expand Down
3 changes: 1 addition & 2 deletions src/main/java/de/presti/ree6/commands/impl/fun/Ping.java
Original file line number Diff line number Diff line change
@@ -1,13 +1,12 @@
package de.presti.ree6.commands.impl.fun;

import de.presti.ree6.commands.Category;
import de.presti.ree6.commands.interfaces.Command;
import de.presti.ree6.commands.CommandEvent;
import de.presti.ree6.commands.interfaces.Command;
import de.presti.ree6.commands.interfaces.ICommand;
import de.presti.ree6.main.Main;
import net.dv8tion.jda.api.interactions.commands.build.CommandData;

// TODO check if this command is actually used, if not remove. Since there is no point in having this cause it was only a random joked between me and one of my friends.
@Command(name = "ping", description = "Pong!", category = Category.FUN)
public class Ping implements ICommand {

Expand Down
Original file line number Diff line number Diff line change
@@ -1,17 +1,19 @@
package de.presti.ree6.commands.impl.mod;

import de.presti.ree6.commands.Category;
import de.presti.ree6.commands.interfaces.Command;
import de.presti.ree6.commands.CommandEvent;
import de.presti.ree6.commands.interfaces.Command;
import de.presti.ree6.commands.interfaces.ICommand;
import de.presti.ree6.main.Main;
import net.dv8tion.jda.api.Permission;
import net.dv8tion.jda.api.interactions.commands.build.CommandData;

import java.util.ArrayList;

// TODO for the love of god, I have to remove this or completely rework this. Otherwise there is no reason for this command since you can manage it over the Panel.

/**
* @deprecated This command will be removed soon. In addition to a new upcoming feature, which uses AI Recognition to detect "bad words".
* @since 1.7.13
*/
@Command(name = "chatprotector", description = "Manage your Chat Filter.", category = Category.MOD)
public class ChatProtector implements ICommand {
@Override
Expand Down

0 comments on commit 9ba150b

Please sign in to comment.