mirror of
https://github.com/Freezy-Studios/BlazeSMP.git
synced 2025-04-21 15:34:04 +02:00
fix PressurePlateListener
This commit is contained in:
parent
af781435b6
commit
2f6a9051af
1 changed files with 4 additions and 2 deletions
|
@ -2,6 +2,8 @@ package me.freezy.plugins.papermc.blazesmp.listener;
|
|||
|
||||
import me.freezy.plugins.papermc.blazesmp.BlazeSMP;
|
||||
import me.freezy.plugins.papermc.blazesmp.module.manager.L4M4;
|
||||
import net.kyori.adventure.text.Component;
|
||||
import net.kyori.adventure.text.minimessage.MiniMessage;
|
||||
import org.bukkit.Bukkit;
|
||||
import org.bukkit.Location;
|
||||
import org.bukkit.Material;
|
||||
|
@ -24,7 +26,7 @@ public class PressurePlateListener implements Listener {
|
|||
private final Location pressurePlateLocation;
|
||||
private final Location spawnLocation;
|
||||
private final Map<UUID, BukkitRunnable> playerTasks = new HashMap<>();
|
||||
private final String teleportMessage;
|
||||
private final Component teleportMessage;
|
||||
private final long teleportDelay;
|
||||
|
||||
public PressurePlateListener() {
|
||||
|
@ -41,7 +43,7 @@ public class PressurePlateListener implements Listener {
|
|||
config.getDouble("spawn-location.y", 200),
|
||||
config.getDouble("spawn-location.z", 0)
|
||||
);
|
||||
teleportMessage = L4M4.get("pressureplate.teleport");
|
||||
teleportMessage = MiniMessage.miniMessage().deserialize(L4M4.get("pressureplate.teleport"));
|
||||
teleportDelay = 5 * 20L;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue