Git Product home page Git Product logo

Comments (3)

mbax avatar mbax commented on August 29, 2024

To confirm, do you mean a placeholder that returns something like true or false based on being in a faction?

There already are a few placeholders that do things distinct for not being in a faction, such as (I'm not including the %factions_...% bit):

player_role - It's empty if not in a faction
player_role_name - It's the lang.yml PLACEHOLDER->ROLE->NAME entry if not in a faction
player_factionless - It's empty if in a faction, and whatever your lang.yml calls factionless players if not in one
faction_only_space - It's literally a single space if in a faction and empty if not.

from factions.

catches avatar catches commented on August 29, 2024

Yo @mbax sorry I didn't get to this, but it was more so a placeholder that returns true or false yeah, since I'm using plugins that have conditions where I'm trying to detect if a player is in a faction, and I don't know how to do that with just empty spaces.

from factions.

mbax avatar mbax commented on August 29, 2024

Do those plugins truly only take 'true' or 'false'? That's very odd to use placeholders that way and not allow for detecting if(value is empty) or similar for using that empty/notempty string.

from factions.

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.