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.

Plugin Hider skript to allow opped players see the plugins.

Discussion in 'Skript' started by ZadeFear, May 19, 2019.

Thread Status:
Not open for further replies.
  1. ZadeFear

    ZadeFear Member

    Joined:
    May 19, 2019
    Messages:
    2
    Likes Received:
    0
  2. Runakai

    Runakai Well-Known Member

    Joined:
    Apr 27, 2018
    Messages:
    411
    Likes Received:
    23
    Use the on command event and check if the player has permission X if not cancel it
     
  3. novastosha

    novastosha Well-Known Member

    Joined:
    Jan 11, 2019
    Messages:
    240
    Likes Received:
    13
    Code (Skript):
    1. on command:
    2.     if command is "plugins" or "plugin" or "pl":
    3.         if player does not have permission "NoPluginViewer.Bypass":
    4.             cancel event
    5.             send "No permission to see plugins"
     
  4. ELROMPEDIENTES

    Joined:
    Feb 24, 2017
    Messages:
    191
    Likes Received:
    7
    Code (Text):
    1. on command:
    2.     if command is "plugins" or "plugin" or "pl" or "bukkit:pl" or "bukkit:plugins" or "bukkit:?":
    3.         if player does not have permission "NoPluginViewer.Bypass":
    4.             cancel event
    5.             send "No permission to see plugins"
     
  5. couger44

    Supporter

    Joined:
    Feb 19, 2017
    Messages:
    419
    Likes Received:
    14
    Code (Skript):
    1. on command:
    2.     sender = player
    3.     command is "pl" or "plugins" or "bukkit:pl" or "bukkit:plugins" or "about" or "bukkit:about" or "ver" or "bukkit:ver" or "version" or "bukkit:version" or "help" or "ehelp" or "essentials:help" or "essentials:ehelp" or "icanhasversion":
    4.         if player does not have permission "yourpermission.here":
    5.             cancel event
    6.             send "&cYou are not an admin."
    7.         else:
    8.             uncancel event
    9. command /? [<string>]:
    10.     trigger:
    11.         if arg 1 is "[<tab>]":
    12.             player does not have permission "yourpermission.here":
    13.                 send "&cYou are not an admin".
    14.                 stop
    15.         else if arg 1 is not set:
    16.             player does not have permission "yourpermission.here":
    17.                 send "&cYou are not an admin."
    18.                 stop
    19. on tab complete:
    20.     if player does not have permission "yourpermission.here":
    21.         cancel event
    22.         send "&cYou are not an admin."
    23.     else:
    24.         uncancel event
    25.  
    Something like that I would do.
     
    #5 couger44, May 20, 2019
    Last edited: May 20, 2019
    • Agree Agree x 1
  6. TPGamesNL

    Supporter

    Joined:
    Jan 20, 2018
    Messages:
    1,380
    Likes Received:
    85
    Medals:
    [​IMG]
     
    • Funny Funny x 1
  7. couger44

    Supporter

    Joined:
    Feb 19, 2017
    Messages:
    419
    Likes Received:
    14
    I dont understand xD
     
  8. TPGamesNL

    Supporter

    Joined:
    Jan 20, 2018
    Messages:
    1,380
    Likes Received:
    85
    Medals:
    upload_2019-5-20_7-35-6.png
     
    • Funny Funny x 3
  9. couger44

    Supporter

    Joined:
    Feb 19, 2017
    Messages:
    419
    Likes Received:
    14
Thread Status:
Not open for further replies.
Loading...