YouHaveTrouble / CommandWhitelist

You decide what commands players can use or tab complete on your server!
GNU General Public License v2.0
207 stars 22 forks source link

Compatibility with Purpur? #20

Closed CroaBeast closed 3 years ago

CroaBeast commented 3 years ago

Hello, I want to ask if the plugin is compatible with Purpur.

I use Purpur version git-Purpur-1051 (MC: 1.16.5) and with CommandWhitelist 1.7.3 but the tab completion and the whitelist doesn't work on any way.

Do you want some logs, config, or anything related? Or is the plugin not compatible with Purpur?

YouHaveTrouble commented 3 years ago

Plugin is fullly compatible with Purpur, I personally use it on Purpur. Make sure to check out FAQ and see if you're doing everything correctly.

CroaBeast commented 3 years ago

I check that and I was doing correctly.

I use LuckPerms to give the default group the permission: "commandwhitelist.commands.default"

This is my config.yml:


  prefix: "&8[&e&lCMW&8] "
  command-denied: "&cNo puedes usar este comando."
  subcommand-denied: "&cNo puedes usar este argumento para ese comando."
  no-permission: "&cNo tienes permiso para hacer esto."
  no-such-subcommand: "&cNo existe este argumento."
  config-reloaded: "&eConfiguration reloaded."
  added-to-whitelist: "&eWhitelisted command &6%s &efor permission &6%s"
  removed-from-whitelist: "&eRemoved command &6%s &efrom permission &6%s"
  group-doesnt-exist: "&cGroup doesn't exist or error occured"

# To cover the 1% of plugins that don't register their commands and/or aliases properly.
# Do not enable if you don't have issues with aliased commands.
# This requires server restart to take effect.
use-protocollib-to-detect-commands: true

commands:
  # Permissions that control what commands players can use
  # you can add unlimited amount of whitelists

  # this will be automatically given to players by default
  default:
    - ps
    - tpa
    - tpaccept
    - tpacancel
    - tpahere
    - back
    - rtp
    - afk
    - tienda
    - gifts
    - recompensas
    - boost
    - stars
    - buy
    - discord
    - kit
    - marry
    - duel
    - mypet
    - pets
    - pvp
    - servato
    - sermorra
    - spawn
    - newenchants
    - starsoff
  # commandwhitelist.commands.example
  vip:
    - condense
    - suicide
    - nick
    - dispose
    - glow
  mvp:
    - anvil
    - hat
    - craft
    - head
  pro:
    - ec
    - itemname
  pub:
    - repair
    - flightcharge
    - flyc
    - nick
  helper:
    - invsee
    - tp
    - prueba
  mod:
    - co
    - fly
    - gms
    - gmsp
    - vanish
    - v

tabcompletions:
  # This one is working as a blacklist. Player will not be able
  # to see/use listed subcommands unless they have specified permission
  # commandwhitelist.subcommands.example
  example:
    - help about```
YouHaveTrouble commented 3 years ago

You don't need to grand default permission for some time now.

I also still don't know what exactly is your issue, as you didn't describe it in a way that it can't be taken in multiple contexts.

CroaBeast commented 3 years ago

The issue is that all the commands are denied by the plugin, and I can't see the custom tab completion, I can see all the command list instead of the custom one

YouHaveTrouble commented 3 years ago

Are there any errors printed at startup? are things working fine with default config?

CroaBeast commented 3 years ago

No errors when the server starts. And no, even with a new config it doesn't work as should.

YouHaveTrouble commented 3 years ago

If you have any other plugins messing with commands, please try removing them

YouHaveTrouble commented 3 years ago

You can also try addin a command to default whitelist via /cw add , that will basically refresh the config, if that errors out it means something's wrong with the config

CroaBeast commented 3 years ago

This is my plugin list:

Plugins (61): AnnouncerPlus, AutoPluginLoader, BannerBoard*, BeeHivesTrees, BetterRTP, BungeeGuard, BuycraftX, CAM*, ChestSort, Citizens, CleanroomGenerator, CMI, CMILib, CommandPanels, ConsoleSpamFix, CoreProtect, CustomJoinMessages*, DeathMessages, DiscordSRV, Duels, eco, EcoEnchants, EnderPearlFix, EntityTrackerFixer, HolographicDisplays, HolographicExtension, InfiniteScoreboard, InfoHeads, ItemEdit, ItemTag, LastLoginAPI, LevelPoints, LuckPerms, Marriage, MessageEditor, Multiverse-Core, Multiverse-Inventories, MyCommand, MyPet, MySQLNicks, OreAnnouncer, PlaceholderAPI, ProtectionStones, ProtocolLib, QueuedCommands*, RawMsg, RemoteCommands*, SAML, SkinsRestorer, TransparentHeads, Vault, VeinMiner, ViaBackwards, ViaRewind, ViaVersion, VillagerOptimiser, VoidSpawn, WorldBorder, WorldEdit, WorldGuard, WorldGuardExtraFlags

YouHaveTrouble commented 3 years ago

I literally cannot tell what your plugins do based on names and I don't have the time to check them one by one. This basically doesn't help. Try running commandWhitelist without plugins, if it works, another plugin is interfering with it. That's all.

YouHaveTrouble commented 3 years ago

latest version of CW works on my testing server, which is latest purpur. Cannot reproduce your issue locally.

CroaBeast commented 3 years ago

yisus, well, I'm gonna try that in a backup server

CroaBeast commented 3 years ago

Ok... this is weird. My backup server works with the plugin, but the original no, I cannot understand why