Skip to content

Commit

Permalink
minor changes in code
Browse files Browse the repository at this point in the history
  • Loading branch information
jonagamerpro1234 committed Aug 30, 2023
1 parent 65a3555 commit cedce3d
Show file tree
Hide file tree
Showing 4 changed files with 2 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

public class HelpCommand extends SubCommand {

private CustomJoinAndQuitMessage plugin = CustomJoinAndQuitMessage.get();
private final CustomJoinAndQuitMessage plugin = CustomJoinAndQuitMessage.get();

public String name() {
return "help";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,14 +17,6 @@ public class GroupFile {
private File file;
private FileConfiguration config;

public void create() {
this.file = new File(plugin.getDataFolder(), "groups.yml");
if (!this.file.exists()) {
getConfig().options().copyDefaults(true);
saveConfig();
}
}

public FileConfiguration getConfig() {
if (this.config == null) {
reloadConfig();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@

public class JoinListener implements Listener {

private static final CustomJoinAndQuitMessage plugin = CustomJoinAndQuitMessage.get();
private final JoinQuitMessageHandlerFactory handlerFactory = JoinQuitMessageHandlerFactory.getInstance();

@EventHandler(priority = EventPriority.HIGH, ignoreCancelled = true)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,5 @@ public void getName(){

}


}

0 comments on commit cedce3d

Please sign in to comment.