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:
Ursprung
6a46a437e6
Commit
7f3ecfd42f
@ -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();
|
||||||
})
|
}))
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren