Simonmaribo | Plugins
  • Introduktion
  • Plugins
    • Bande
      • Installation
      • Konfiguration
        • Config.yml
        • Messages.yml
        • Levels
        • GUI
        • Permissions
        • Settings
        • Shop
        • Leaderboard
      • Addons
        • Create Addon
          • BandeAddon classen.
        • Add your own level
      • Skript-Reflect Snippet
      • Java Docs
      • Placeholders
        • PlaceholderAPI
        • Indbygget Placeholders
        • GUI Placeholders
    • PrisonCells
      • Installation
      • Konfiguration
        • Config
        • Messages
      • Java Docs
    • ItemFlip
      • Installation
      • Konfiguration
        • Config
        • Messages
        • Item Aliases
      • Citizens integration
      • Java Docs
    • End Crates
      • Installation
      • Konfiguration
        • Config
        • Messages
    • Discord Link
      • Installation
      • Konfiguration
        • Config
        • Messages
    • Quests
      • Installation
      • Konfiguration
        • Config.yml
        • Messages.yml
      • Quests (missioner)
      • Menu
        • Gui
  • Additional Information
    • Discord
Powered by GitBook
On this page

Was this helpful?

  1. Plugins
  2. Bande

Skript-Reflect Snippet

import:
    dk.plexhost.bande.BandePlugin

load:
    set {BANDE} to BandePlugin.getAPI()

offlineplayer property bande:
    return type: object
    get:
        return {BANDE}.getBande(expr-1)

offlineplayer property bande id:
    return type: number
    get:
        return (expr-1's bande).getId()

offlineplayer property bande name:
    return type: text
    get:
        return (expr-1's bande).getName()

expression b-stat %text% of %player%'s bande:
    return type: number
    get:
        set {_bande} to expr-2's bande
        if {_bande} is not set:
            stop
        return {_bande}.getStat(expr-1)
    set:
        set {_bande} to expr-2's bande
        if {_bande} is not set:
            stop
        {_bande}.setStat(expr-1, the change value)
    add:
        set {_bande} to expr-2's bande
        if {_bande} is not set:
            stop
        {_bande}.addStat(expr-1, the change value)
    remove:
        set {_bande} to expr-2's bande
        if {_bande} is not set:
            stop
        set {_current} to {_bande}.getStat(expr-1)
        {_bande}.setStat(expr-1, {_current}-the change value)
    reset:
        set {_bande} to expr-2's bande
        if {_bande} is not set:
            stop
        {_bande}.setStat(expr-1, 0)


condition %player% has bande:
    check:
        set {_bande} to expr-1's bande
        if {_bande} is set:
            continue

condition %player% has bande permission %string%:
    check:
        set {_bande} to expr-1's bande
        if {_bande} is not set:
            stop
        if {_bande}.getRank(expr-1.getUniqueId()) <= {_bande}.getPermission(expr-2):
            continue

Last updated 2 years ago

Was this helpful?