GithubHelp home page GithubHelp logo

Comments (5)

NextdoorPsycho avatar NextdoorPsycho commented on May 27, 2024 1

Would you allow them to see / aquire the skill, but when they try to use it its denied, or dont even show it at all? / Deny it if used. Because the problem with that is if they are learning skills and you arbitrarily remove nodes, you prevent them from unlearning them, as there arent any events that trigger the removal of permission nodes. Additionally you can toggle any of them as of now.

from adapt.

NextdoorPsycho avatar NextdoorPsycho commented on May 27, 2024 1

Include adapt the plugin in your compile script. I assume as a developer somewhere you are able to do this.

    public void on(AdaptAdaptationUseEvent e) {
    // your code here
    }

You can also blacklist permissions:
Give someone these permission nodes to blacklist any skill in specific:
adapt.blacklist.tragoulthorns
adapt.blacklist.tragoulglobe
adapt.blacklist.tragoulhealing
adapt.blacklist.tragoullance
adapt.blacklist.enchantingquickenchant
adapt.blacklist.enchantinglapisreturn
adapt.blacklist.enchantingxpreturn
adapt.blacklist.netherwitherresist
adapt.blacklist.netherskulltoss
adapt.blacklist.herbalismgrowthaura
adapt.blacklist.herbalismreplant
adapt.blacklist.herbalismhungryshield
adapt.blacklist.herbalismhippo
adapt.blacklist.herbalismdroptoinventory
adapt.blacklist.herbalismluck
adapt.blacklist.herbalismmyconid
adapt.blacklist.herbalismterralid
adapt.blacklist.herbalismcobweb
adapt.blacklist.herbalismcobweb
adapt.blacklist.pickaxechisel
adapt.blacklist.pickaxeveinminer
adapt.blacklist.pickaxeautosmelt
adapt.blacklist.pickaxedroptoinventory
adapt.blacklist.architectglass
adapt.blacklist.architectfoundation
adapt.blacklist.architectplacement
adapt.blacklist.architectwirelessredstone
adapt.blacklist.axegroundsmash
adapt.blacklist.axechop
adapt.blacklist.axedroptoinventory
adapt.blacklist.axeleafveinminer
adapt.blacklist.axewoodveinminer
adapt.blacklist.axelogswap
adapt.blacklist.swordmachete
adapt.blacklist.swordpoisonblade
adapt.blacklist.swordbloodyblade
adapt.blacklist.riftresist
adapt.blacklist.riftaccess
adapt.blacklist.riftenderchest
adapt.blacklist.riftgate
adapt.blacklist.riftblink
adapt.blacklist.riftdescent
adapt.blacklist.brewinglingering
adapt.blacklist.brewingsuperheated
adapt.blacklist.brewingabsorption
adapt.blacklist.brewingblindness
adapt.blacklist.brewingdarkness
adapt.blacklist.brewingdecay
adapt.blacklist.brewingfatigue
adapt.blacklist.brewinghaste
adapt.blacklist.brewinghealthboost
adapt.blacklist.brewinghunger
adapt.blacklist.brewingnausea
adapt.blacklist.brewingresistance
adapt.blacklist.brewingsaturation
adapt.blacklist.rangedforce
adapt.blacklist.rangedpiercing
adapt.blacklist.rangedrecovery
adapt.blacklist.rangedlungeshot
adapt.blacklist.rangedwebshot
adapt.blacklist.blockingmultiarmor
adapt.blacklist.blockingchainarmorer
adapt.blacklist.blockingsaddlecrafter
adapt.blacklist.blockinghorsearmorer
adapt.blacklist.craftingdeconstruction
adapt.blacklist.craftingxp
adapt.blacklist.craftingleather
adapt.blacklist.craftingskulls
adapt.blacklist.craftingbackpacks
adapt.blacklist.craftingstations
adapt.blacklist.craftingreconstruction
adapt.blacklist.discoveryunity
adapt.blacklist.discoveryworldarmor
adapt.blacklist.discoveryxpresist
adapt.blacklist.discoveryvillageratt
adapt.blacklist.seaborneoxygen
adapt.blacklist.seabornespeed
adapt.blacklist.seabornefishersfantasy
adapt.blacklist.seaborneturtlesvision
adapt.blacklist.seaborneturtlesminingspeed
adapt.blacklist.excavationhaste
adapt.blacklist.excavationspelunker
adapt.blacklist.excavationomnitool
adapt.blacklist.excavationdroptoinventory
adapt.blacklist.stealthspeed
adapt.blacklist.stealthsnatch
adapt.blacklist.stealthghostarmor
adapt.blacklist.stealthvision
adapt.blacklist.unarmedsuckerpunch
adapt.blacklist.unarmedpower
adapt.blacklist.unarmedglasscannon
adapt.blacklist.agilitywindup
adapt.blacklist.agilitywalljump
adapt.blacklist.agilitysuperjump
adapt.blacklist.agilityarmorup
adapt.blacklist.hunteradrenaline
adapt.blacklist.hunterregen
adapt.blacklist.hunterinvis
adapt.blacklist.hunterjumpboost
adapt.blacklist.hunterluck
adapt.blacklist.hunterspeed
adapt.blacklist.hunterstrength
adapt.blacklist.hunterresistance
adapt.blacklist.hunterdroptoinventory
adapt.blacklist.tamehealth
adapt.blacklist.tamedamage
adapt.blacklist.tamehealthregeneration

from adapt.

Igzak avatar Igzak commented on May 27, 2024

Allow players to see and acquire the skill, but deny its usage if they don't have the required permission node. When a player tries to use a skill they don't have permission for, display a message informing them that they lack the necessary permission. This approach will enable players to learn and unlearn skills freely without affecting their progression. It also allows server administrators to grant or revoke permission nodes as needed without causing issues for the player. Also maybe if there is no permission to use the skill that is not possible to learn auto-unlearn it

from adapt.

Igzak avatar Igzak commented on May 27, 2024

Or maybe add a listener to the plugin that detects when a permission node is added or removed from a player. When the listener detects a change in a player's permission nodes, it can automatically update the player's available skills accordingly. This way, players will only see the skills they have permission for, and server administrators can grant or revoke permissions without causing issues for the player.
https://luckperms.net/wiki/Developer-API-Usage#listening-for-changes-to-permissionsparent-groupsetc

from adapt.

NextdoorPsycho avatar NextdoorPsycho commented on May 27, 2024

Ill probably be adding this / an api in one big update

from adapt.

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.