How do i allow console & players (with permission) to use /ban

  • Welcome to skUnity!

    Welcome to skUnity! This is a forum where members of the Skript community can communicate and interact. Skript Resource Creators can post their Resources for all to see and use.

    If you haven't done so already, feel free to join our official Discord server to expand your level of interaction with the comminuty!

    Now, what are you waiting for? Join the community now!

  • LOOKING FOR A VERSION OF SKRIPT?

    You can always check out skUnity Downloads for downloads and any other information about Skript!

Status
Not open for further replies.

Aceism

Member
Dec 3, 2019
1
0
0
23
Hello! I've been making a /ban script recently and have been having some troubles with the permission nodes.

The script has been running perfectly fine in game. The only issue I've been having with it is that Console isn't able to use the /ban command.

if player has permission "@ban_permission"

^ Works perfectly fine in game. But when i run it through console it doesn't work, presumably because its "if player". Is there any way I can get the command to work with BOTH console and players (with the permission node) please help!

As said before the entire script is working fine. I just cant use it in console.
Thanks!
 
Hi, Try this.
Code:
command /ban [<player>] [<text>]:
    trigger:
        if executor is player:
            if player have permission "{@ban_permission}":
                #Your code here
        if executor is console:
            #Your code here
 
Status
Not open for further replies.