Giter Club home page Giter Club logo

Comments (4)

dandin87 avatar dandin87 commented on June 7, 2024

https://www.curseforge.com/minecraft/mc-mods/player-roles-fabric

from gunpowderteleport.

bleeper913 avatar bleeper913 commented on June 7, 2024

@dandin87 I already use player roles on my server, but I'm guessing I just haven't got it set up correctly as it's not working for me. Do you have it working appropriately? Here is what my everyone role looks like. Can you spot the issue?

  "everyone": {
    "overrides": {
      "commands": {
        "help": "allow",
        "warp spawn": "allow",
        "warp set": "deny",
	"tpaccept": "allow",
	"tpdeny": "allow",
	"back": "allow",
	".*": "deny"
      }
    }
  }

When it is explicitly denied, players can cannot set warps as expected. But, even though /warp spawn is allowed, players can't use the command. This seems to only work if I set "warp": "allow",, but then players can set warps. This may be a bug of Player Roles instead.

But beyond that, I'm not sure GunpowderTeleport is working as intended to let non-admins set warps in this way.

Also, it looks like non-admins can use the /setwarp command too. They should not be able to do this according to the readme. Is this a bug, or could I just be missing something obvious?

from gunpowderteleport.

bleeper913 avatar bleeper913 commented on June 7, 2024

Ok I did some more fiddling and found a setup that works with the Player Roles mod. I'm just adding it here in case anyone wants to know, but I still think GunpowderTeleport may not be working as intended if non-admins can set warps.

To get the roles set up correctly, you need to set "warp": "allow", and "warp set": "deny", in the roles.json file. When players type /warp they will see all options, which includes the set argument, but they will be unable to use the command to set any warps. They will be able to see and use all available warps though which may not be ideal for some servers, but for me, it works just fine.

It's a bit of a quick fix for now though I think, as non-admins shouldn't be able to set warps in the first place. Unless this mod is working as intended in that regard

from gunpowderteleport.

Martmists-GH avatar Martmists-GH commented on June 7, 2024

The readme says /setwarp is an admin-only command. However, any player with access to /warp can use /warp set and set a new warp. Is there a way to restrict this somehow?

That's definitely a bug; Try to avoid talking about Player Roles as we do not officially support it.

from gunpowderteleport.

Related Issues (14)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.