Giter Club home page Giter Club logo

Comments (6)

Lunaphied avatar Lunaphied commented on August 12, 2024

@zml2008 I like a lot of this, but for the command blocks I think the proposals are flawed. Command block names are also used by some maps (mostly older) to indicate who is saying the /say command from the command block.

Moving forward /tellraw will solve that problem, but we still have many maps with /say and named command blocks would be confusing with permissions.

As long as you address that smallish issue I'm perfectly fine with using the name of the command block.

from spongeforge.

zml2008 avatar zml2008 commented on August 12, 2024

well Sponge is set up so that default permissions match what commands are allowed to vanilla users by default, meaning that any named command block could execute /say. Is that the issue you were worried about?

from spongeforge.

Lunaphied avatar Lunaphied commented on August 12, 2024

I think so.

from spongeforge.

ST-DDT avatar ST-DDT commented on August 12, 2024

Well players are identified by their uuid?
And we could use a prefix for command blocks.
@CMDB_<Name>
This guarantees that there will never be collisions between players and commandblocks.
As an alternative we could add a getType method to CommandSource/Subject and leave it to the permission service to deal with it properly. This method would also help for commands whether it can be executed from that source. Ex Arena join is only available to Players regardless of permissions.

from spongeforge.

zml2008 avatar zml2008 commented on August 12, 2024

@ST-DDT I suggest looking at how the permissions api actually works before commenting on issues relating to it.

And for your last example, that's what source instanceof Player is for.

from spongeforge.

zml2008 avatar zml2008 commented on August 12, 2024

This is implemented with PR #215

from spongeforge.

Related Issues (20)

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.