mirror of
https://github.com/EngineHub/WorldGuard.git
synced 2025-01-27 10:31:36 +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
|
* @return the WorldGuard plugin or null
|
||||||
*/
|
*/
|
||||||
public WorldGuardPlugin getPlugin() {
|
public static WorldGuardPlugin getPlugin() {
|
||||||
return (WorldGuardPlugin) Bukkit.getServer().getPluginManager().getPlugin("WorldGuard");
|
return (WorldGuardPlugin) Bukkit.getServer().getPluginManager().getPlugin("WorldGuard");
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -53,7 +53,7 @@ public WorldGuardPlugin getPlugin() {
|
|||||||
* @param world world
|
* @param world world
|
||||||
* @return a region manager or null
|
* @return a region manager or null
|
||||||
*/
|
*/
|
||||||
public RegionManager getRegionManager(World world) {
|
public static RegionManager getRegionManager(World world) {
|
||||||
WorldGuardPlugin plugin = getPlugin();
|
WorldGuardPlugin plugin = getPlugin();
|
||||||
if (plugin == null) {
|
if (plugin == null) {
|
||||||
return null;
|
return null;
|
||||||
|
Loading…
Reference in New Issue
Block a user