Changes regarding review by Andre

Signed-off-by: Jacob Bordas <methalicity@gmail.com>
This commit is contained in:
Jacob Bordas 2020-09-01 01:31:52 +02:00
parent 7c404db56b
commit 2c13acfd30
No known key found for this signature in database
GPG Key ID: 8220A8219FC365AF
2 changed files with 2 additions and 5 deletions

View File

@ -6,9 +6,7 @@ import org.bukkit.event.HandlerList;
import org.jetbrains.annotations.NotNull;
/**
* This event is ran when all expansions are loaded.
* This is done when reloading config, on plugin start and on server load.
* @author jacobbordas (@ignissak)
* This event is called when all expansions are loaded (when reloading config, on plugin start and on server load).
*/
public class ExpansionsLoadedEvent extends Event {

View File

@ -322,8 +322,7 @@ public final class LocalExpansionManager implements Listener {
registered == 0 ? "&6No expansions were registered!"
: registered + "&a placeholder hooks successfully registered!");
final ExpansionsLoadedEvent event = new ExpansionsLoadedEvent();
Bukkit.getPluginManager().callEvent(event);
Bukkit.getPluginManager().callEvent(new ExpansionsLoadedEvent());
});
}