1. 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!

  2. LOOKING FOR A VERSION OF SKRIPT??:

    You can always check our our Wiki for downloads and any other information about Skript!

Dismiss Notice
This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

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

Discussion in 'Skript' started by Aceism, Dec 3, 2019.

  1. Aceism

    Aceism Member

    Joined:
    Dec 3, 2019
    Messages:
    1
    Likes Received:
    0
    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!
     
  2. Goose

    Goose Active Member

    Joined:
    Nov 23, 2019
    Messages:
    33
    Likes Received:
    1
    idek if this is correct but try:

    permission: permission.ban
     
  3. LukynkaCZE

    LukynkaCZE Active Member

    Joined:
    May 12, 2019
    Messages:
    26
    Likes Received:
    0
    Hi, Try this.
    Code (Text):
    1. command /ban [<player>] [<text>]:
    2.     trigger:
    3.         if executor is player:
    4.             if player have permission "{@ban_permission}":
    5.                 #Your code here
    6.         if executor is console:
    7.             #Your code here
    8.  
     
Loading...