Update T2C_Cmd.java
Add PlaceholderAPI to Player send Command
This commit is contained in:
parent
90df1fa5fb
commit
8ae50fcbbf
@ -1,5 +1,6 @@
|
|||||||
package net.t2code.t2codelib.SPIGOT.api.commands;
|
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_ProxyCommandSenderReceiver;
|
||||||
import net.t2code.t2codelib.SPIGOT.system.T2C_Main;
|
import net.t2code.t2codelib.SPIGOT.system.T2C_Main;
|
||||||
import org.bukkit.Bukkit;
|
import org.bukkit.Bukkit;
|
||||||
@ -24,7 +25,7 @@ public class T2C_Cmd {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public static void player(Player player, String cmdInput) {
|
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();
|
int delay = map.getValue();
|
||||||
String cmd = map.getKey();
|
String cmd = map.getKey();
|
||||||
Bukkit.getScheduler().runTaskLater(T2C_Main.getPlugin(), new Runnable() {
|
Bukkit.getScheduler().runTaskLater(T2C_Main.getPlugin(), new Runnable() {
|
||||||
|
Loading…
Reference in New Issue
Block a user