9
0
mirror of https://github.com/HibiscusMC/HMCCosmetics.git synced 2025-12-26 18:39:07 +00:00

Command is now run through PAPI

This commit is contained in:
LoJoSho
2023-01-11 13:22:50 -06:00
parent 4a623bca9d
commit 773fed42ec

View File

@@ -2,6 +2,7 @@ package com.hibiscusmc.hmccosmetics.gui.action.actions;
import com.hibiscusmc.hmccosmetics.gui.action.Action;
import com.hibiscusmc.hmccosmetics.user.CosmeticUser;
import com.hibiscusmc.hmccosmetics.util.MessagesUtil;
public class ActionPlayerCommand extends Action {
@@ -11,6 +12,6 @@ public class ActionPlayerCommand extends Action {
@Override
public void run(CosmeticUser user, String raw) {
user.getPlayer().performCommand(raw);
user.getPlayer().performCommand(MessagesUtil.processStringNoKeyString(user.getPlayer(), raw));
}
}