mirror of
https://github.com/aikar/commands.git
synced 2026-05-31 06:11:55 +00:00
Allow extension of module specific context classes
I am uncertain whether this is an api feature we want to 'advertise', but I do not see a compelling reason we need to block extending the classes.
This commit is contained in:
@@ -27,7 +27,7 @@ import org.bukkit.command.CommandSender;
|
||||
import org.bukkit.entity.Player;
|
||||
|
||||
public class BukkitCommandCompletionContext extends CommandCompletionContext<BukkitCommandIssuer> {
|
||||
BukkitCommandCompletionContext(RegisteredCommand command, BukkitCommandIssuer issuer, String input, String config, String[] args) {
|
||||
protected BukkitCommandCompletionContext(RegisteredCommand command, BukkitCommandIssuer issuer, String input, String config, String[] args) {
|
||||
super(command, issuer, input, config, args);
|
||||
}
|
||||
|
||||
|
||||
@@ -30,7 +30,7 @@ import java.util.List;
|
||||
import java.util.Map;
|
||||
|
||||
public class BukkitCommandExecutionContext extends CommandExecutionContext<BukkitCommandExecutionContext, BukkitCommandIssuer> {
|
||||
BukkitCommandExecutionContext(RegisteredCommand cmd, CommandParameter param, BukkitCommandIssuer sender, List<String> args,
|
||||
protected BukkitCommandExecutionContext(RegisteredCommand cmd, CommandParameter param, BukkitCommandIssuer sender, List<String> args,
|
||||
int index, Map<String, Object> passedArgs) {
|
||||
super(cmd, param, sender, args, index, passedArgs);
|
||||
}
|
||||
|
||||
@@ -27,7 +27,7 @@ import org.bukkit.command.CommandSender;
|
||||
import org.bukkit.entity.Player;
|
||||
|
||||
public class BukkitConditionContext extends ConditionContext<BukkitCommandIssuer> {
|
||||
BukkitConditionContext(BukkitCommandIssuer issuer, String config) {
|
||||
protected BukkitConditionContext(BukkitCommandIssuer issuer, String config) {
|
||||
super(issuer, config);
|
||||
}
|
||||
|
||||
|
||||
@@ -28,7 +28,7 @@ import net.md_5.bungee.api.connection.ProxiedPlayer;
|
||||
|
||||
public class BungeeCommandCompletionContext extends CommandCompletionContext<BungeeCommandIssuer> {
|
||||
|
||||
BungeeCommandCompletionContext(RegisteredCommand command, BungeeCommandIssuer issuer, String input, String config, String[] args) {
|
||||
protected BungeeCommandCompletionContext(RegisteredCommand command, BungeeCommandIssuer issuer, String input, String config, String[] args) {
|
||||
super(command, issuer, input, config, args);
|
||||
}
|
||||
|
||||
|
||||
@@ -31,7 +31,7 @@ import java.util.Map;
|
||||
|
||||
public class BungeeCommandExecutionContext extends CommandExecutionContext<BungeeCommandExecutionContext, BungeeCommandIssuer> {
|
||||
|
||||
BungeeCommandExecutionContext(RegisteredCommand cmd, CommandParameter param, BungeeCommandIssuer sender, List<String> args, int index, Map<String, Object> passedArgs) {
|
||||
protected BungeeCommandExecutionContext(RegisteredCommand cmd, CommandParameter param, BungeeCommandIssuer sender, List<String> args, int index, Map<String, Object> passedArgs) {
|
||||
super(cmd, param, sender, args, index, passedArgs);
|
||||
}
|
||||
|
||||
|
||||
@@ -4,7 +4,7 @@ import net.md_5.bungee.api.CommandSender;
|
||||
import net.md_5.bungee.api.connection.ProxiedPlayer;
|
||||
|
||||
public class BungeeConditionContext extends ConditionContext <BungeeCommandIssuer> {
|
||||
BungeeConditionContext(BungeeCommandIssuer issuer, String config) {
|
||||
protected BungeeConditionContext(BungeeCommandIssuer issuer, String config) {
|
||||
super(issuer, config);
|
||||
}
|
||||
|
||||
|
||||
@@ -4,7 +4,7 @@ import java.util.List;
|
||||
import java.util.Map;
|
||||
|
||||
public class JDACommandExecutionContext extends CommandExecutionContext<JDACommandExecutionContext, JDACommandEvent> {
|
||||
JDACommandExecutionContext(RegisteredCommand cmd, CommandParameter param, JDACommandEvent sender, List<String> args, int index, Map<String, Object> passedArgs) {
|
||||
protected JDACommandExecutionContext(RegisteredCommand cmd, CommandParameter param, JDACommandEvent sender, List<String> args, int index, Map<String, Object> passedArgs) {
|
||||
super(cmd, param, sender, args, index, passedArgs);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
package co.aikar.commands;
|
||||
|
||||
public class JDAConditionContext extends ConditionContext<JDACommandEvent> {
|
||||
JDAConditionContext(JDACommandEvent issuer, String config) {
|
||||
protected JDAConditionContext(JDACommandEvent issuer, String config) {
|
||||
super(issuer, config);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -28,7 +28,7 @@ import org.spongepowered.api.entity.living.player.Player;
|
||||
@SuppressWarnings("WeakerAccess")
|
||||
public class SpongeCommandCompletionContext extends CommandCompletionContext<SpongeCommandIssuer> {
|
||||
|
||||
SpongeCommandCompletionContext(final RegisteredCommand command, final SpongeCommandIssuer issuer, final String input, final String config, final String[] args) {
|
||||
protected SpongeCommandCompletionContext(final RegisteredCommand command, final SpongeCommandIssuer issuer, final String input, final String config, final String[] args) {
|
||||
super(command, issuer, input, config, args);
|
||||
}
|
||||
|
||||
|
||||
@@ -30,7 +30,7 @@ import java.util.Map;
|
||||
|
||||
public class SpongeCommandExecutionContext extends CommandExecutionContext<SpongeCommandExecutionContext, SpongeCommandIssuer> {
|
||||
|
||||
SpongeCommandExecutionContext(RegisteredCommand cmd, CommandParameter param, SpongeCommandIssuer sender, List<String> args,
|
||||
protected SpongeCommandExecutionContext(RegisteredCommand cmd, CommandParameter param, SpongeCommandIssuer sender, List<String> args,
|
||||
int index, Map<String, Object> passedArgs) {
|
||||
super(cmd, param, sender, args, index, passedArgs);
|
||||
}
|
||||
|
||||
@@ -3,7 +3,7 @@ package co.aikar.commands;
|
||||
import org.spongepowered.api.entity.living.player.Player;
|
||||
|
||||
public class SpongeConditionContext extends ConditionContext <SpongeCommandIssuer> {
|
||||
SpongeConditionContext(SpongeCommandIssuer issuer, String config) {
|
||||
protected SpongeConditionContext(SpongeCommandIssuer issuer, String config) {
|
||||
super(issuer, config);
|
||||
}
|
||||
|
||||
|
||||
@@ -28,7 +28,7 @@ import com.velocitypowered.api.proxy.Player;
|
||||
|
||||
public class VelocityCommandCompletionContext extends CommandCompletionContext<VelocityCommandIssuer> {
|
||||
|
||||
VelocityCommandCompletionContext(RegisteredCommand command, VelocityCommandIssuer issuer, String input, String config, String[] args) {
|
||||
protected VelocityCommandCompletionContext(RegisteredCommand command, VelocityCommandIssuer issuer, String input, String config, String[] args) {
|
||||
super(command, issuer, input, config, args);
|
||||
}
|
||||
|
||||
|
||||
@@ -8,7 +8,7 @@ import com.velocitypowered.api.proxy.Player;
|
||||
|
||||
public class VelocityCommandExecutionContext extends CommandExecutionContext<VelocityCommandExecutionContext, VelocityCommandIssuer> {
|
||||
|
||||
VelocityCommandExecutionContext(RegisteredCommand cmd, CommandParameter param, VelocityCommandIssuer sender, List<String> args, int index, Map<String, Object> passedArgs) {
|
||||
protected VelocityCommandExecutionContext(RegisteredCommand cmd, CommandParameter param, VelocityCommandIssuer sender, List<String> args, int index, Map<String, Object> passedArgs) {
|
||||
super(cmd, param, sender, args, index, passedArgs);
|
||||
}
|
||||
|
||||
|
||||
@@ -4,7 +4,7 @@ import com.velocitypowered.api.command.CommandSource;
|
||||
import com.velocitypowered.api.proxy.Player;
|
||||
|
||||
public class VelocityConditionContext extends ConditionContext <VelocityCommandIssuer> {
|
||||
VelocityConditionContext(VelocityCommandIssuer issuer, String config) {
|
||||
protected VelocityConditionContext(VelocityCommandIssuer issuer, String config) {
|
||||
super(issuer, config);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user