mirror of
https://github.com/EngineHub/WorldGuard.git
synced 2025-02-28 18:21:20 +01:00
Added NPE error message and javadoc hint for WorldGuard.getPlatform
This commit is contained in:
parent
7e817c3330
commit
682942b965
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user