ErdbeerbaerLP / DiscordIntegration-Forge

Forge version of the Discord Integration mod
https://modrinth.com/plugin/dcintegration
MIT License
99 stars 54 forks source link

[Bug]: No player outside admin ID can run commands. #452

Closed igotfits1 closed 2 years ago

igotfits1 commented 2 years ago

What happened?

Any player that joins our discord can not run any commands, only the admins that have the ID from the config can run commands. Please assist. I want regular discord users to be able to run TPS, List, Clear, etc..... Even when having adminOnly = false, it still doesnt work it comes back with the bot saying: You dont have permissions to execute this command.

Game Version

1.12

What platform are you using?

Forge

Platform version

1.12.2

Config File

[[commands.customCommands]]
      name = "kick"
      description = "Kicks an player from the Server"
      mcCommand = "kick %player% %reason%"
      adminOnly = true
      hidden = false

        [[commands.customCommands.args]]
          name = "player"
          description = "The player to be kicked"
          optional = false

        [[commands.customCommands.args]]
          name = "reason"
          description = "Reason for the kick"
          optional = true

    [[commands.customCommands]]
      name = "stop"
      description = "Stops the server"
      mcCommand = "stop"
      adminOnly = true
      hidden = false
args = [    ]

    [[commands.customCommands]]
      name = "list"
      description = "Shows online players"
      mcCommand = "list"
      adminOnly = false
      hidden = false
args = [    ]

    [[commands.customCommands]]
      name = "tps"
      description = "Show server TPS"
      mcCommand = "forge tps"
      adminOnly = false
      hidden = false
args = [    ]

    [[commands.customCommands]]
      name = "clear"
      description = "Clear floor of items"
      mcCommand = "kill @e[type=item]"
      adminOnly = false
      hidden = false
args = [    ]

    [[commands.customCommands]]
      name = "wlremove"
      description = "Remove player from whitelist"
      mcCommand = "wl remove %target%"
      adminOnly = true
      hidden = false
args = [    ]

    [[commands.customCommands]]
      name = "kill"
      description = "Kills an Player or Entity"
      mcCommand = "kill %target%"
      adminOnly = true
      hidden = false

        [[commands.customCommands.args]]
          name = "target"
          description = "The target(s) for the kill command."
          optional = false

Crash report / Error log (if applicable)

No response

Additional Information

No response

igotfits1 commented 2 years ago
  # The Role IDs of your Admin Roles
  # Now supports multiple roles which can access admin commands
adminRoleIDs = [  "771441122270900"  ]
  # Add your custom commands here
  # You can also generate some on https://erdbeerbaerlp.de/dcintegration-commands/
  # You must op this UUID in the ops.txt or some custom commands won't work!
  senderUUID = "8d8982a5-8cf9-4604-8feb-3dd5ee1f83a3"
  # Enable help command?
  # Disabling also removes response when you entered an invalid command
  # Requires server restart
  helpCmdEnabled = true
  # Enable the list command in discord
  # Requires server restart
  listCmdEnabled = true
  # Enable the uptime command in discord
  # Requires server restart
  uptimeCmdEnabled = true
  # Set to false to completely disable the "Unknown Command" message
  showUnknownCommandMessage = true
  # Set to true to enable the "Unknown Command" message in all channels
  showUnknownCommandEverywhere = false