Merge pull request #2877 from IntellectualSites/features/v5/split-bukkit-listeners

Clean up bukkit listeners by splitting them up
This commit is contained in:
NotMyFault
2020-07-15 13:35:38 +02:00
committed by GitHub
11 changed files with 3468 additions and 3229 deletions

View File

@ -162,7 +162,7 @@ public interface IPlotMain<P> extends ILogger {
/**
* Register the protection system.
*/
void registerPlayerEvents();
void registerEvents();
/**
* Register force field events.

View File

@ -252,7 +252,7 @@ public class PlotSquared {
this.IMP.runEntityTask();
}
if (Settings.Enabled_Components.EVENTS) {
this.IMP.registerPlayerEvents();
this.IMP.registerEvents();
}
// Required
this.IMP.registerWorldEvents();

View File

@ -43,7 +43,7 @@ import static com.plotsquared.core.util.entity.EntityCategories.CAP_VEHICLE;
* Entity related general utility methods
*/
@UtilityClass
public final class EntityUtil {
public class EntityUtil {
private static int capNumeral(@NonNull final String flagName) {
int i;