9
0
mirror of https://github.com/HibiscusMC/HMCCosmetics.git synced 2025-12-30 04:19:28 +00:00

feat: console command now processes placeholders

This commit is contained in:
LoJoSho
2023-08-19 12:25:58 -05:00
parent f2fab91916
commit 3ae6a11626

View File

@@ -2,6 +2,7 @@ package com.hibiscusmc.hmccosmetics.gui.action.actions;
import com.hibiscusmc.hmccosmetics.HMCCosmeticsPlugin;
import com.hibiscusmc.hmccosmetics.gui.action.Action;
import com.hibiscusmc.hmccosmetics.hooks.Hooks;
import com.hibiscusmc.hmccosmetics.user.CosmeticUser;
import org.jetbrains.annotations.NotNull;
@@ -13,6 +14,6 @@ public class ActionConsoleCommand extends Action {
@Override
public void run(@NotNull CosmeticUser user, String raw) {
HMCCosmeticsPlugin.getInstance().getServer().dispatchCommand(user.getPlayer(), raw);
HMCCosmeticsPlugin.getInstance().getServer().dispatchCommand(user.getPlayer(), Hooks.processPlaceholders(user.getPlayer(), raw));
}
}