mirror of
https://github.com/Freezy-Studios/BlazeSMP.git
synced 2025-04-22 04:44:04 +02:00
Fix typo
This commit is contained in:
parent
7240f34ff0
commit
af781435b6
2 changed files with 4 additions and 4 deletions
|
@ -31,7 +31,7 @@ public class PressurePlateListener implements Listener {
|
||||||
FileConfiguration config = plugin.getConfig();
|
FileConfiguration config = plugin.getConfig();
|
||||||
pressurePlateLocation = new Location(
|
pressurePlateLocation = new Location(
|
||||||
Bukkit.getWorld(config.getString("pressure-plate.world", "world")),
|
Bukkit.getWorld(config.getString("pressure-plate.world", "world")),
|
||||||
config.getDouble("pressure-plate.x", 1),
|
config.getDouble("pressure-plate.x", 0),
|
||||||
config.getDouble("pressure-plate.y", 68),
|
config.getDouble("pressure-plate.y", 68),
|
||||||
config.getDouble("pressure-plate.z", 0)
|
config.getDouble("pressure-plate.z", 0)
|
||||||
);
|
);
|
||||||
|
@ -74,8 +74,8 @@ public class PressurePlateListener implements Listener {
|
||||||
} else {
|
} else {
|
||||||
if (playerTasks.containsKey(event.getPlayer().getUniqueId())) {
|
if (playerTasks.containsKey(event.getPlayer().getUniqueId())) {
|
||||||
if (event.getFrom().getBlockX() != event.getTo().getBlockX() ||
|
if (event.getFrom().getBlockX() != event.getTo().getBlockX() ||
|
||||||
event.getFrom().getBlockY() != event.getTo().getBlockY() ||
|
event.getFrom().getBlockY() != event.getTo().getBlockY() ||
|
||||||
event.getFrom().getBlockZ() != event.getTo().getBlockZ()) {
|
event.getFrom().getBlockZ() != event.getTo().getBlockZ()) {
|
||||||
playerTasks.get(event.getPlayer().getUniqueId()).cancel();
|
playerTasks.get(event.getPlayer().getUniqueId()).cancel();
|
||||||
playerTasks.remove(event.getPlayer().getUniqueId());
|
playerTasks.remove(event.getPlayer().getUniqueId());
|
||||||
}
|
}
|
||||||
|
|
|
@ -7,7 +7,7 @@ isEndOpen: false
|
||||||
|
|
||||||
pressure-plate:
|
pressure-plate:
|
||||||
world: "world"
|
world: "world"
|
||||||
x: 1
|
x: 0
|
||||||
y: 68
|
y: 68
|
||||||
z: 0
|
z: 0
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue