mirror of
https://github.com/EngineHub/WorldGuard.git
synced 2024-10-03 00:57:34 +02:00
Fixed some more warnings.
This commit is contained in:
parent
d781f9822f
commit
9484bb9941
@ -212,6 +212,7 @@ public void onPlayerMove(PlayerMoveEvent event) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@SuppressWarnings("deprecation")
|
||||||
@EventHandler
|
@EventHandler
|
||||||
public void onPlayerJoin(PlayerJoinEvent event) {
|
public void onPlayerJoin(PlayerJoinEvent event) {
|
||||||
Player player = event.getPlayer();
|
Player player = event.getPlayer();
|
||||||
@ -866,7 +867,6 @@ public void onPlayerBucketFill(PlayerBucketFillEvent event) {
|
|||||||
|
|
||||||
ConfigurationManager cfg = plugin.getGlobalStateManager();
|
ConfigurationManager cfg = plugin.getGlobalStateManager();
|
||||||
WorldConfiguration wcfg = cfg.get(world);
|
WorldConfiguration wcfg = cfg.get(world);
|
||||||
LocalPlayer localPlayer = plugin.wrapPlayer(player);
|
|
||||||
|
|
||||||
if (!plugin.getGlobalRegionManager().canBuild(
|
if (!plugin.getGlobalRegionManager().canBuild(
|
||||||
player, event.getBlockClicked().getRelative(event.getBlockFace()))) {
|
player, event.getBlockClicked().getRelative(event.getBlockFace()))) {
|
||||||
|
Loading…
Reference in New Issue
Block a user