Skip to content

Commit ef6a52f

Browse files
committed
Refactoring + JavaDoc
1 parent a8047fd commit ef6a52f

2 files changed

Lines changed: 5 additions & 3 deletions

File tree

src/main/java/nl/ordewittetafel/minecom_plugin/Main.java

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,9 @@
77
import org.bukkit.plugin.java.JavaPlugin;
88

99
public class Main extends JavaPlugin {
10-
private FileConfiguration config;
11-
1210
@Override
1311
public void onEnable() {
14-
config = getConfig();
12+
FileConfiguration config = getConfig();
1513
/*
1614
* The next config values may be changed according to your Discord bot settings in config.yml after the plugin
1715
* has been run once

src/main/java/nl/ordewittetafel/minecom_plugin/listeners/JoinQuitListener.java

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,10 @@
1212

1313
import java.io.IOException;
1414

15+
/**
16+
* This class waits for a player to join or quit and then sends a message about it to the Discord bot connected to this
17+
* plugin
18+
*/
1519
public class JoinQuitListener implements Listener {
1620
private final JavaPlugin plugin;
1721
private final FileConfiguration config;

0 commit comments

Comments
 (0)