diff options
Diffstat (limited to 'spark-velocity')
-rw-r--r-- | spark-velocity/build.gradle | 4 | ||||
-rw-r--r-- | spark-velocity/src/main/java/me/lucko/spark/velocity/VelocitySparkPlugin.java | 5 |
2 files changed, 4 insertions, 5 deletions
diff --git a/spark-velocity/build.gradle b/spark-velocity/build.gradle index 03fe260..e90ed7f 100644 --- a/spark-velocity/build.gradle +++ b/spark-velocity/build.gradle @@ -4,8 +4,8 @@ plugins { dependencies { compile project(':spark-common') - compileOnly 'com.velocitypowered:velocity-api:1.0.3' - annotationProcessor 'com.velocitypowered:velocity-api:1.0.3' + compileOnly 'com.velocitypowered:velocity-api:1.0.4' + annotationProcessor 'com.velocitypowered:velocity-api:1.0.4' } blossom { diff --git a/spark-velocity/src/main/java/me/lucko/spark/velocity/VelocitySparkPlugin.java b/spark-velocity/src/main/java/me/lucko/spark/velocity/VelocitySparkPlugin.java index 7e98679..4fe8c52 100644 --- a/spark-velocity/src/main/java/me/lucko/spark/velocity/VelocitySparkPlugin.java +++ b/spark-velocity/src/main/java/me/lucko/spark/velocity/VelocitySparkPlugin.java @@ -32,7 +32,6 @@ import com.velocitypowered.api.plugin.annotation.DataDirectory; import com.velocitypowered.api.proxy.ProxyServer; import me.lucko.spark.common.SparkPlatform; import me.lucko.spark.common.SparkPlugin; -import org.checkerframework.checker.nullness.qual.NonNull; import org.checkerframework.checker.optional.qual.MaybePresent; import java.nio.file.Path; @@ -72,12 +71,12 @@ public class VelocitySparkPlugin implements SparkPlugin, Command { } @Override - public void execute(@MaybePresent CommandSource sender, @NonNull @MaybePresent String[] args) { + public void execute(CommandSource sender, String[] args) { this.platform.executeCommand(new VelocityCommandSender(sender), args); } @Override - public @MaybePresent List<String> suggest(@MaybePresent CommandSource sender, @NonNull @MaybePresent String[] currentArgs) { + public @MaybePresent List<String> suggest(CommandSource sender, String[] currentArgs) { return this.platform.tabCompleteCommand(new VelocityCommandSender(sender), currentArgs); } |