diff options
author | Luck <git@lucko.me> | 2020-01-26 00:56:24 +0000 |
---|---|---|
committer | Luck <git@lucko.me> | 2020-01-26 00:56:24 +0000 |
commit | 5c1883f5a26e14e3350b1532ad0371bc8543bd3b (patch) | |
tree | db926eab2fddc9a2f3967418062e90ae204066a7 /spark-velocity | |
parent | 40c07f2148d739d6091f0177b75162d1fd4294ce (diff) | |
download | spark-5c1883f5a26e14e3350b1532ad0371bc8543bd3b.tar.gz spark-5c1883f5a26e14e3350b1532ad0371bc8543bd3b.tar.bz2 spark-5c1883f5a26e14e3350b1532ad0371bc8543bd3b.zip |
Update to 1.15.2
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); } |