mirror of
https://github.com/aikar/commands.git
synced 2026-06-20 14:00:37 +00:00
Add support for Per Player Locale on Bukkit - Resolves #62
This commit is contained in:
@@ -40,7 +40,7 @@ import java.util.List;
|
||||
import java.util.Map;
|
||||
|
||||
@SuppressWarnings("WeakerAccess")
|
||||
public class SpongeCommandManager extends CommandManager<CommandSource, TextColor, SpongeMessageFormatter> {
|
||||
public class SpongeCommandManager extends CommandManager<CommandSource, SpongeCommandIssuer, TextColor, SpongeMessageFormatter> {
|
||||
|
||||
protected final PluginContainer plugin;
|
||||
protected Map<String, SpongeRootCommand> registeredCommands = new HashMap<>();
|
||||
@@ -126,7 +126,7 @@ public class SpongeCommandManager extends CommandManager<CommandSource, TextColo
|
||||
}
|
||||
|
||||
@Override
|
||||
public CommandIssuer getCommandIssuer(Object issuer) {
|
||||
public SpongeCommandIssuer getCommandIssuer(Object issuer) {
|
||||
if (!(issuer instanceof CommandSource)) {
|
||||
throw new IllegalArgumentException(issuer.getClass().getName() + " is not a Command Issuer.");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user