Java -> Script recreation

  • 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!

BrettPlayMC

Supporter
Jan 26, 2017
715
53
28
SkUnity Street
Category: Commands

Suggested name: CommandBlockerUltra

What I want:
A proper remake of the plugin CommandBlockerUltimate in script. I really don't care if it has YAML but if you want to post it on SkUnity then users may want it but that is up to you! I would like to be able to put a command in (somewhere) and if a player does not have a (customizable) permission, they are sent a (customizable) message. It would be nice if you could use "options:" at the top and set {@Permission} (or something) and {@NoPermMessage} as options. This would make it easier to change.

Ideas for commands:
/cbu reload
Ideas for permissions:
cbu.admin
When I'd like it by: This week. :emoji_grinning:
 
code_language.skript:
Options:
    Command: /pl, /Plugins, /Bukkit:Pl, /Minecraft:Me
    NoPermMessage: You can't use this command
    Permission: cbu.Admin

On command {@Command}:
    If player has permission "{@Permission}":
        Stop
    Else:
        Cancel event
        Send "@NoPermMessage"
Command /Cbu reload:
    Trigger:
        If player has permission "{@Permission}":
            Make console execute comman "Skript reload cbu"
I just typed this on my phone so there can be some grammer mistakes
[doublepost=1487152771,1486886492][/doublepost]Is it working? Any more things you would like to be added?
 
  • Like
Reactions: BrettPlayMC
code_language.skript:
Options:
    Command: /pl, /Plugins, /Bukkit:Pl, /Minecraft:Me
    NoPermMessage: You can't use this command
    Permission: cbu.Admin

On command {@Command}:
    If player has permission "{@Permission}":
        Stop
    Else:
        Cancel event
        Send "@NoPermMessage"
Command /Cbu reload:
    Trigger:
        If player has permission "{@Permission}":
            Make console execute comman "Skript reload cbu"
I just typed this on my phone so there can be some grammer mistakes
[doublepost=1487152771,1486886492][/doublepost]Is it working? Any more things you would like to be added?
It isn't canceling the message of the real plugin. :emoji_frowning: