Advertisement
Guest User

Untitled

a guest
Mar 26th, 2017
62
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.50 KB | None | 0 0
  1. Command set = new Command("set").requirePermissions(EnumSet.of(Permissions.ADMINISTRATOR)).onExecuted(new Consumer<CommandContext>() {
  2. @Override
  3. public void accept(CommandContext arg0) {
  4. sendMessage(arg0.getMessage().getChannel(), "Setando cargos...");
  5. RequestBuffer.request(() -> {
  6. for (IUser u : client.getUsers()) {
  7. try {
  8. u.addRole(client.getRoleByID("295650805162311680"));
  9. } catch (Exception e) {
  10. e.printStackTrace();
  11. }
  12.  
  13. }
  14. });
  15.  
  16. }
  17. });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement