Skip to content

Commit

Permalink
Added NPE error message and javadoc hint for WorldGuard.getPlatform
Browse files Browse the repository at this point in the history
  • Loading branch information
Joo200 committed Jul 15, 2021
1 parent 7e817c3 commit 682942b
Showing 1 changed file with 2 additions and 1 deletion.
Expand Up @@ -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;
}

Expand Down

0 comments on commit 682942b

Please sign in to comment.