Declare world permission nodes
This commit is contained in:
parent
5d739362a2
commit
29a413e0f7
1 changed files with 4 additions and 1 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue