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

fix: console command not sending from console

This commit is contained in:
LoJoSho
2023-08-19 12:27:20 -05:00
parent 3ae6a11626
commit f91c174b20

View File

@@ -4,6 +4,7 @@ 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.bukkit.Bukkit;
import org.jetbrains.annotations.NotNull;
public class ActionConsoleCommand extends Action {
@@ -14,6 +15,6 @@ public class ActionConsoleCommand extends Action {
@Override
public void run(@NotNull CosmeticUser user, String raw) {
HMCCosmeticsPlugin.getInstance().getServer().dispatchCommand(user.getPlayer(), Hooks.processPlaceholders(user.getPlayer(), raw));
HMCCosmeticsPlugin.getInstance().getServer().dispatchCommand(Bukkit.getConsoleSender(), Hooks.processPlaceholders(user.getPlayer(), raw));
}
}