skript-mirror

Addon skript-mirror 0.19.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!

btk5h updated skript-mirror with a new update entry:

skript-mirror 0.14.0

  • Fix issues with object wrappers
  • Remove the stack trace expression
  • Restrict import aliases to valid Java identifiers
  • Remove multiple as a synonym for plural/non-single
  • Fix try expressions not being converted correctly
  • Fix parse sections being parsed multiple times
  • Fix an NPE with nullable expressions in parse sections
  • Start localization
  • Allow the spread expression to spread streams
  • Register custom syntax earlier so that they can be used recursively
  • Wrap...

Read the rest of this update entry...
 
code_language.skript:
effect testing %player%:
    trigger:
        open virtual chest inventory with size 5 named "&8&l» &3ARENA SETTINGS" to expression-1
        wait 2 ticks
        make a gui slot 0 of expression-1 with black glass named "&7" to run:
            send "..." to expression-1
            close expression-1's inventory

code_language.skript:
[02:11:32 ERROR]: The expression 'expression' may only be used in a custom syntax. (test.sk, line 19: send "..." to expression-1')
[02:11:32 ERROR]: The expression 'expression' may only be used in a custom syntax. (test.sk, line 20: close expression-1's inventory')

you cannot use expresssion-x after to run: - from tuske
 
code_language.skript:
effect testing %player%:
    trigger:
        open virtual chest inventory with size 5 named "&8&l» &3ARENA SETTINGS" to expression-1
        wait 2 ticks
        make a gui slot 0 of expression-1 with black glass named "&7" to run:
            send "..." to expression-1
            close expression-1's inventory

code_language.skript:
[02:11:32 ERROR]: The expression 'expression' may only be used in a custom syntax. (test.sk, line 19: send "..." to expression-1')
[02:11:32 ERROR]: The expression 'expression' may only be used in a custom syntax. (test.sk, line 20: close expression-1's inventory')

you cannot use expresssion-x after to run: - from tuske
I'm not sure if this is skript-mirror's fault. It seems to be an issue with whatever gui addon you are using.
 
This is why I not open a issue for it, its tuske anyway
Within the make gui tuske scope, the code is parsed as if it was an inventory click event. You have to set a local variable to the expression's value and use that.
 
btk5h updated skript-mirror with a new update entry:

skript-mirror 0.15.0

⚠️ Breaking Changes
Hey there! This should be the last massive breaking update until full release! (Unless we can remove the ! from field accessors)

  • Java calls no longer use ; as a line terminator
  • Fix custom expression return types
  • Allow the loop-* of a plural expression to specified
  • Add plural form to the java class of property
  • Store expression values when custom syntax is executed...

Read the rest of this update entry...
 
a little help please

code_language.skript:
on script load:
    import "com.nametagedit.plugin.api.NametagAPI"
                
            
command /test:
    trigger:
        NametagEdit.getApi().setPrefix(player, "&c")
 
a little help please

code_language.skript:
on script load:
    import "com.nametagedit.plugin.api.NametagAPI"
              
          
command /test:
    trigger:
        NametagEdit.getApi().setPrefix(player, "&c")
The import effect was changed into the import block.
code_language.skript:
import:
  com.nametagedit.plugin.api.NametagAPI
 
  • Like
Reactions: Uzumaki
The import effect was changed into the import block.
code_language.skript:
import:
  com.nametagedit.plugin.api.NametagAPI
do you have any idea why this do not work?

code_language.skript:
import:
    com.nametagedit.plugin.api.NametagAPI
             
         
command /test:
    trigger:
        NametagEdit.getApi().setPrefix(player, "&c")

code_language.skript:
Can't understand this condition/effect: NametagEdit.getApi().setPrefix(player, "&c")
 
do you have any idea why this do not work?

code_language.skript:
import:
    com.nametagedit.plugin.api.NametagAPI
            
        
command /test:
    trigger:
        NametagEdit.getApi().setPrefix(player, "&c")

code_language.skript:
Can't understand this condition/effect: NametagEdit.getApi().setPrefix(player, "&c")
You imported NametagAPI, not NametagEdit.
 
Code:
 List<String> record = new ArrayList();
 vg.addComponent(new VexText(10, 20, "test"));
This code in java should I write in SK?
 
I want to get an ArrayList, the following two kinds of code, how should I write?
Code:
set {_text} to new ArrayList("text1" and "text2")
 
after 0.15.0 update if you use skquery

code_language.skript:
command /test:
    trigger:   
        testing(player)
        
        
function testing(p: player):
    {_p}.setAllowFlight(true)
    send "the code after the line from above will not be used" to {_p}
 
Is it possible to import functions from bungecoord plugin?

I mean I wanted to use api of this bungee plugin:
code_language.skript:
https://www.spigotmc.org/resources/party-and-friends-for-bungeecord.9531/
http://simonsator.de/JavaDoc/Party-and-Friends-MySQL-API/overview-summary.html


Can i somehow import "de.simonsator.partyandfriends.api.party" to spigot server?

Thank you in advance!