#Please help me with PlaceholderAPI

1 messages · Page 1 of 1 (latest)

solar grail
#

I use a translator.

  • How to configure javascript to put the &r symbol in the placeholder?
    • Here is my script:

var placeholder = '%guilds_prefix%'

function placeholderCheck() {
if (placeholder == '') {
return '%guilds_prefix% &r';
}
else {
return placeholder;
}
}

placeholderCheck()

#

Please send me the correct squeak if it's not difficult.

mossy mountain
#
var placeholder = '%guilds_prefix%';

function placeholderCheck() {
    if (placeholder == '') {
        return '%guilds_prefix% &r';
    }
    else {
        return placeholder;
    }
}

placeholderCheck();
solar grail
solar grail
#

There's a built-in function in the plugin...
But I want to change my own via PlaceholderAPI :C

#

Either configure %guilds_formatted% this.

solar grail
#

The wisdom helped me to make a prefix in the back and not in the front

#
var placeholder = '%guilds_prefix%'

function placeholderCheck() {
    if (placeholder == '') {
        return '%guilds_prefix%';
    }
    else {
        return 'help' + placeholder;
    }
}

placeholderCheck()
#

Yes!!!

#
var placeholder = '%guilds_prefix%';

function placeholderCheck() {
    if (placeholder == '') {
        return '' + placeholder;
    } else {
        return '%guilds_prefix% &r';
    }
}

placeholderCheck();