Changing plugin sub commands

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

legendofgow

New Member
Mar 22, 2024
8
0
1
29
Hello, I don't know if anyone will be willing to help, but I need help writing a simple script :emoji_slight_smile:

There is a plugin called Lands, some of you have probably heard of her,
99% of it can be translated into any language you want, but the sub commands of this plugin still remain in English "/lands create <name>"
I tried to force sub command aliases to be added in /commands.yml, unfortunately it didn't work
I need a simple script that will allow me to replace the sub commands of this plugin
example:
Code:
/lands create name
change to:
Code:
/lands stworz <name>
in the plugin config I can change the main command "/lands" to "/ziemie" but it is not possible to change the sub commands there ;/

so the final command would look like:
Code:
/ziemie stworz <name>
as I wrote to the creator, many very young people play Minecraft who do not understand such commands in English :emoji_slight_smile:

one example of such a script would probably help me, because the plugin has a lot of sub commands, I will probably figure out the rest myself using an example that will work :emoji_slight_smile:

Lands command wiki: https://github.com/Angeschossen/Lands/wiki/Commands
 
CoffeeScript:
command /yourcommand:
    trigger:
        if arg1 is set:
            make player execute command "/originalcommand %arg1%"
        if arg2 is set:
            make player execute command "/originalcommand %arg1% %arg2%"
        if arg1 is "beans":
            make player execute command "/originalcommand %arg1% %arg2%"
        if arg2 contains "beans":
            make player execute command "/originalcommand %arg1% %arg2%"
 
  • Like
Reactions: legendofgow
CoffeeScript:
command /yourcommand:
    trigger:
        if arg1 is set:
            make player execute command "/originalcommand %arg1%"
        if arg2 is set:
            make player execute command "/originalcommand %arg1% %arg2%"
        if arg1 is "beans":
            make player execute command "/originalcommand %arg1% %arg2%"
        if arg2 contains "beans":
            make player execute command "/originalcommand %arg1% %arg2%"
I think plugin is not like it :emoji_grinning:
 

Attachments

  • obraz_2024-06-24_203100640.png
    obraz_2024-06-24_203100640.png
    172.4 KB · Views: 24
arg-1/arg-2
Sorry, i just wrote here like an example.

You need to found a recipe to go through this, what i tell you here isn't enought.