r4g3baby / SimpleScore

A simple animated scoreboard plugin for your minecraft server.
https://www.spigotmc.org/resources/simplescore.23243/
MIT License
68 stars 34 forks source link

Feature Request: Add possibility for EQUALS_NOT condition or ELSE statements #33

Closed NoelBank closed 2 years ago

NoelBank commented 2 years ago

I think it would be usefull to add this masterpiece of condition EQUALS_NOT.

This could then make the following possible:

if hasPermissionExample 
...

if hasNoPermissionExample 
...

it would be easier if you could simply pass an else statement:

    2:
      conditions: ["equalsOperationExample"]
      frames:
        - "&7You can see this line because you passed.."
        - "&7the &8equalsOperationExample &7condition."
      else: 
        frames:
          - "&7You can't see this line because you"
          - "&7didn't pass the &8equalsOperationExample &7condition."

Best regards!

r4g3baby commented 2 years ago

Hey, thanks for the suggestion. I'm currently planning on adding support for negating conditions simply by using an "!" before the condition name.

Example: [ "!hasPermissionExample" ] would negate the hasPermissionExample condition.

I do also like the else statement feature so I might get both of them in when I have some free time.

NoelBank commented 2 years ago

nice, to the '!' I had thought so too.

thanks for your project