Update T2C_Cmd.java

Add PlaceholderAPI to Player send Command
This commit is contained in:
JaTiTV 2024-07-11 13:24:29 +02:00
parent 90df1fa5fb
commit 8ae50fcbbf

View File

@ -1,5 +1,6 @@
package net.t2code.t2codelib.SPIGOT.api.commands;
import me.clip.placeholderapi.PlaceholderAPI;
import net.t2code.t2codelib.SPIGOT.system.T2C_ProxyCommandSenderReceiver;
import net.t2code.t2codelib.SPIGOT.system.T2C_Main;
import org.bukkit.Bukkit;
@ -24,7 +25,7 @@ public class T2C_Cmd {
}
public static void player(Player player, String cmdInput) {
Map.Entry<String,Integer> map = delay(cmdInput);
Map.Entry<String,Integer> map = delay(PlaceholderAPI.setPlaceholders(player, cmdInput));
int delay = map.getValue();
String cmd = map.getKey();
Bukkit.getScheduler().runTaskLater(T2C_Main.getPlugin(), new Runnable() {