#I wanna make this pay plugin work

1 messages · Page 1 of 1 (latest)

main rune
slate cairn
#

So, where is the function?

main rune
#

ahm man i don't got these knowledge

#

it was in a HeroicStudio Setup but they disbanded support

#

am i missing some dependency

slate cairn
#

Yeah You are missing the function

main rune
#

umm where can i add it sir?

#

how do i add it

opal bolt
#

no clue, u probably didnt get the full code since ur missing the function

main rune
#

hmm ok

#

by chance is there any /pay skript available?

tired merlin
# main rune

Just a little example on how you can make your code look a tad bit better..

command /pay [<offline player>]: 
    trigger:
        if arg-1 is not set:
            send "&8[&e&lECO&8] &fInvalid Usage: &7/pay <player>&f." to player
            play sound "block.note_block.bass" to player
            stop
        
        if arg-1 is not player:
            send "&8[&e&lECO&8] &fYou must pay a player." to player
            play sound "block.note_block.bass" to player
            stop
        
        if {paytoggle::%arg-1's uuid%} is true:
            send "&8[&e&lECO&8] &fThis player has payments disabled!" to player
            play sound "block.note_block.bass" to player
            stop

I just wanted to share this cause in my personal opinion it just makes your code look a lot more better instead of the big chain of "if" and "else"! :D

main rune
#

i feel like i need to start learning it myself

#

instead of using premade

tired merlin
#

Economy Skripts are kinda basics.

dusty wagon