mirror of
https://github.com/EngineHub/WorldGuard.git
synced 2025-01-26 01:51:19 +01:00
kekekeke forgot static in WGBukkit's methods.
This commit is contained in:
parent
7a3774e730
commit
4da1741578
@ -42,7 +42,7 @@ private WGBukkit() {
|
||||
*
|
||||
* @return the WorldGuard plugin or null
|
||||
*/
|
||||
public WorldGuardPlugin getPlugin() {
|
||||
public static WorldGuardPlugin getPlugin() {
|
||||
return (WorldGuardPlugin) Bukkit.getServer().getPluginManager().getPlugin("WorldGuard");
|
||||
}
|
||||
|
||||
@ -53,7 +53,7 @@ public WorldGuardPlugin getPlugin() {
|
||||
* @param world world
|
||||
* @return a region manager or null
|
||||
*/
|
||||
public RegionManager getRegionManager(World world) {
|
||||
public static RegionManager getRegionManager(World world) {
|
||||
WorldGuardPlugin plugin = getPlugin();
|
||||
if (plugin == null) {
|
||||
return null;
|
||||
|
Loading…
Reference in New Issue
Block a user