File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed
org/wargamer2010/signshop Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -21,7 +21,7 @@ public String getName() {
21
21
public Boolean canBuild (Player player , Block block ) {
22
22
if (HookManager .getHook ("WorldGuard" ) == null ) return true ;
23
23
24
- LocalPlayer localPlayer = WorldGuardPlugin .inst ().wrapPlayer (player );
24
+ LocalPlayer localPlayer = WorldGuardPlugin .inst ().wrapPlayer (player . getPlayer () );
25
25
if (WorldGuard .getInstance ().getPlatform ().getSessionManager ().hasBypass (localPlayer , localPlayer .getWorld ())) return true ;
26
26
27
27
Location loc = localPlayer .getLocation ();
Original file line number Diff line number Diff line change 3
3
4
4
import com .sk89q .worldedit .math .BlockVector3 ;
5
5
import com .sk89q .worldedit .world .World ;
6
- import com .sk89q .worldguard .LocalPlayer ;
7
6
import com .sk89q .worldguard .WorldGuard ;
7
+ import com .sk89q .worldguard .bukkit .WorldGuardPlugin ;
8
8
import com .sk89q .worldguard .protection .flags .Flag ;
9
9
import com .sk89q .worldguard .protection .flags .StateFlag ;
10
10
import com .sk89q .worldguard .protection .regions .ProtectedRegion ;
@@ -29,7 +29,7 @@ public void onSSBuildEvent(SSCreatedEvent event) {
29
29
return ;
30
30
31
31
RegionContainer container = WorldGuard .getInstance ().getPlatform ().getRegionContainer ();
32
- World world = (( LocalPlayer ) event .getPlayer ().getPlayer ()).getWorld ();
32
+ World world = WorldGuardPlugin . inst (). wrapPlayer ( event .getPlayer ().getPlayer ()).getWorld ();
33
33
Location sl = event .getSign ().getLocation ();
34
34
BlockVector3 region = BlockVector3 .at (sl .getX (), sl .getY (), sl .getZ ());
35
35
You can’t perform that action at this time.
0 commit comments