mirror of
https://github.com/webbukkit/dynmap.git
synced 2024-11-28 13:15:30 +01:00
Declare world permission nodes
This commit is contained in:
parent
177310a949
commit
4d6d156e9c
@ -6,6 +6,8 @@ import java.util.List;
|
|||||||
|
|
||||||
import org.bukkit.Location;
|
import org.bukkit.Location;
|
||||||
import org.bukkit.World;
|
import org.bukkit.World;
|
||||||
|
import org.bukkit.permissions.Permission;
|
||||||
|
import org.bukkit.permissions.PermissionDefault;
|
||||||
import org.dynmap.DynmapChunk;
|
import org.dynmap.DynmapChunk;
|
||||||
import org.dynmap.DynmapLocation;
|
import org.dynmap.DynmapLocation;
|
||||||
import org.dynmap.DynmapWorld;
|
import org.dynmap.DynmapWorld;
|
||||||
@ -13,11 +15,12 @@ import org.dynmap.utils.MapChunkCache;
|
|||||||
|
|
||||||
public class BukkitWorld extends DynmapWorld {
|
public class BukkitWorld extends DynmapWorld {
|
||||||
private World world;
|
private World world;
|
||||||
|
private Permission perm;
|
||||||
|
|
||||||
public BukkitWorld(World w) {
|
public BukkitWorld(World w) {
|
||||||
super(w.getName(), w.getMaxHeight(), w.getSeaLevel());
|
super(w.getName(), w.getMaxHeight(), w.getSeaLevel());
|
||||||
|
|
||||||
world = w;
|
world = w;
|
||||||
|
perm = new Permission("dynmap.world." + getName(), "Dynmap access for world " + getName(), PermissionDefault.OP);
|
||||||
}
|
}
|
||||||
/* Test if world is nether */
|
/* Test if world is nether */
|
||||||
@Override
|
@Override
|
||||||
|
Loading…
Reference in New Issue
Block a user