From 28cf46ec3e09e5e4b4a57c5eacb84787989020ce Mon Sep 17 00:00:00 2001 From: "lucko (Luck)" Date: Thu, 31 Dec 2020 00:11:51 +0000 Subject: Fix some deprecation warnings --- spark-sponge/src/main/java/me/lucko/spark/sponge/SpongeSparkPlugin.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'spark-sponge/src/main/java/me/lucko/spark') diff --git a/spark-sponge/src/main/java/me/lucko/spark/sponge/SpongeSparkPlugin.java b/spark-sponge/src/main/java/me/lucko/spark/sponge/SpongeSparkPlugin.java index 5f9a3ef..055f1f4 100644 --- a/spark-sponge/src/main/java/me/lucko/spark/sponge/SpongeSparkPlugin.java +++ b/spark-sponge/src/main/java/me/lucko/spark/sponge/SpongeSparkPlugin.java @@ -113,7 +113,7 @@ public class SpongeSparkPlugin implements SparkPlugin { return Stream.concat( this.game.getServer().getOnlinePlayers().stream().filter(player -> player.hasPermission(permission)), Stream.of(this.game.getServer().getConsole()) - ).map((CommandSource source) -> new SpongeCommandSender(source, this.audienceFactory)); + ).map(source -> new SpongeCommandSender(source, this.audienceFactory)); } @Override -- cgit