From Bukkit Objects¶
Players¶
For legacy reasons and future cross-platform support, WorldGuard uses its own internal player object called LocalPlayer. A Bukkit Player can be converted to a LocalPlayer using wrapPlayer(Player) on WorldGuardPlugin.
WorldGuardPlugin.inst().wrapPlayer(player);
Other Types¶
Many operations need WorldEdit locations, worlds, and so on. Bukkit’s Location, World, and other objects can be converted to WorldEdit objects using methods in com.sk89q.worldedit.bukkit.BukkitAdapter.
BukkitAdapter.adapt(location);
BukkitAdapter.adapt(world);