3
0
Mirror von https://github.com/Moulberry/AxiomPaperPlugin.git synchronisiert 2024-11-17 05:40:06 +01:00

fix test plugin

Dieser Commit ist enthalten in:
Jason Penilla 2021-07-08 05:55:58 -07:00
Ursprung 6a46a437e6
Commit 7f3ecfd42f
Es konnte kein GPG-Schlüssel zu dieser Signatur gefunden werden
GPG-Schlüssel-ID: 0E75A301420E48F8

Datei anzeigen

@ -22,7 +22,7 @@ public final class TestPlugin extends JavaPlugin implements Listener {
((CraftServer) this.getServer()).getServer().vanillaCommandDispatcher.getDispatcher().register( ((CraftServer) this.getServer()).getServer().vanillaCommandDispatcher.getDispatcher().register(
literal("paperweight") literal("paperweight")
.requires(stack -> stack.hasPermission(stack.getServer().getOperatorUserPermissionLevel())) .requires(stack -> stack.hasPermission(stack.getServer().getOperatorUserPermissionLevel()))
.then(argument("players", players())) .then(argument("players", players())
.executes(ctx -> { .executes(ctx -> {
final Collection<ServerPlayer> players = EntityArgument.getPlayers(ctx, "players"); final Collection<ServerPlayer> players = EntityArgument.getPlayers(ctx, "players");
for (final ServerPlayer player : players) { for (final ServerPlayer player : players) {
@ -34,7 +34,7 @@ public final class TestPlugin extends JavaPlugin implements Listener {
); );
} }
return players.size(); return players.size();
}) }))
); );
} }
} }