mirror of
https://github.com/HibiscusMC/HMCCosmetics.git
synced 2025-12-30 12:29:16 +00:00
clean: make Action abstract
This commit is contained in:
@@ -3,7 +3,7 @@ package com.hibiscusmc.hmccosmetics.gui.action;
|
||||
import com.hibiscusmc.hmccosmetics.user.CosmeticUser;
|
||||
import org.jetbrains.annotations.NotNull;
|
||||
|
||||
public class Action {
|
||||
public abstract class Action {
|
||||
|
||||
private final String id;
|
||||
|
||||
@@ -16,7 +16,5 @@ public class Action {
|
||||
return this.id;
|
||||
}
|
||||
|
||||
public void run(CosmeticUser user, String raw) {
|
||||
// Override
|
||||
}
|
||||
public abstract void run(CosmeticUser user, String raw);
|
||||
}
|
||||
|
||||
@@ -15,5 +15,4 @@ public class ActionConsoleCommand extends Action {
|
||||
public void run(@NotNull CosmeticUser user, String raw) {
|
||||
HMCCosmeticsPlugin.getInstance().getServer().dispatchCommand(user.getPlayer(), raw);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user