Added NPE error message and javadoc hint for WorldGuard.getPlatform

This commit is contained in:
JOO200 2021-07-15 19:48:34 +02:00
parent 7e817c3330
commit 682942b965

View File

@ -93,11 +93,12 @@ public void setup() {
/**
* The WorldGuard Platform.
* The Platform is only available after WorldGuard is enabled.
*
* @return The platform
*/
public WorldGuardPlatform getPlatform() {
checkNotNull(platform);
checkNotNull(platform, "WorldGuard is not enabled, unable to access the platform.");
return platform;
}