Giter VIP home page Giter VIP logo

Comments (12)

games647 avatar games647 commented on August 22, 2024 1

I added only permissions, because I think it's better to handle those through different permission groups.

Here is an example of how to use it.
https://github.com/games647/ChangeSkin/blob/master/core/src/main/resources/config.yml#L29

from changeskin.

games647 avatar games647 commented on August 22, 2024 1

You mean the negative permissions ('-')?

from changeskin.

games647 avatar games647 commented on August 22, 2024 1

That won't work. The negative blacklist permissions ('-changeskin.command.setskin.*') would override the whitelist. Then your cannot use any skin.

from changeskin.

KonoromiHimaries avatar KonoromiHimaries commented on August 22, 2024

and command
/SkinBan SkinName/UUID
/SkinAddToWhiteList SkinName/UUID

from changeskin.

KonoromiHimaries avatar KonoromiHimaries commented on August 22, 2024

thanks

from changeskin.

KonoromiHimaries avatar KonoromiHimaries commented on August 22, 2024

ymm you can change

default permissions:

  • changeskin.command.setskin.other.*
  • changeskin.command.setskin
  • changeskin.command.setskin.other

blacklist permissions

  • -changeskin.command.setskin.other.8049614c-496a-4f37-9246-9f70cad6e863
  • -changeskin.command.setskin.8049614c-496a-4f37-9246-9f70cad6e863

whitelist permissions

  • changeskin.command.setskin.other.b500f8be-72b5-42e7-a105-d18f916a324f
  • changeskin.command.setskin.b500f8be-72b5-42e7-a105-d18f916a324f

whitelist: - permission
blacklist: - -permission

you can understand this idea?
sorry for my not good english : P

from changeskin.

KonoromiHimaries avatar KonoromiHimaries commented on August 22, 2024

yes

from changeskin.

games647 avatar games647 commented on August 22, 2024

That's not possible while having a whitelist and blacklist at the same time.

from changeskin.

KonoromiHimaries avatar KonoromiHimaries commented on August 22, 2024

yes of course

from changeskin.

KonoromiHimaries avatar KonoromiHimaries commented on August 22, 2024

the idea

== change format ==

= the white list - replace =
to
! - changeskin.skin.whitelist.uuid
! - changeskin.skin.whitelist.* allows all skins
change to
! - changeskin.command.setskin.other.uuid
! - changeskin.command.setskin.other.* allows all skins
! - changeskin.command.setskin.uuid
! - changeskin.command.setskin.* allows all skins
.
.
.
= the black list - replace =
to
! - changeskin.skin.whitelist.*
! - changeskin.skin.blacklist.uuid
change to
! - -changeskin.command.setskin.*
! - -changeskin.command.setskin.uuid
! - -changeskin.command.setskin.other.*
! - -changeskin.command.setskin.other.uuid

from changeskin.

KonoromiHimaries avatar KonoromiHimaries commented on August 22, 2024

ok : P

from changeskin.

KonoromiHimaries avatar KonoromiHimaries commented on August 22, 2024

Anyway, thank you.
good job XD

from changeskin.

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.