Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Citizen Skin Effect Wont Work #85

Open
Pryzmm opened this issue Jun 24, 2021 · 0 comments
Open

Citizen Skin Effect Wont Work #85

Pryzmm opened this issue Jun 24, 2021 · 0 comments
Assignees
Labels

Comments

@Pryzmm
Copy link

Pryzmm commented Jun 24, 2021

Describe the bug

When i use "change citizen %number% skin to %string%" it stops the script from continuing and doesnt change anything about the skin.

Steps to Reproduce

Use Given Script

Expected Behavior

Change the skin of top 5 players with the most wins
(See last line)

Your Script

Dont know why but it doesnt like to indent itself

command /test: trigger: loop {Wins::*}: add 1 to {_size} if {_low.to.high.list::%loop-value%} is not set: set {_low.to.high.list::%loop-value%} to loop-index else: set {_n} to 0 loop {_size} times: set {_n} to {_n}+1 {_low.to.high.list::%loop-value-1%.%{_n}%} is not set set {_low.to.high.list::%loop-value-1%.%{_n}%} to loop-index stop loop wait 1 tick set {_n} to size of {_low.to.high.list::*} loop {_low.to.high.list::*}: set {_high.to.low.list::%{_n}%} to loop-value set {_n} to {_n}-1 wait 1 tick set {_i} to 0 loop {_high.to.low.list::*}: add 1 to {_topnumber} set {_number} to {_topnumber} + 1 set {_player} to "%loop-value%" parsed as offlineplayer change citizen {_number} skin to {_player}

Screenshots / Errors

[20:01:38] [Server thread/ERROR]: #!#!
[20:01:38] [Server thread/ERROR]: #!#! [Skript] Severe Error:
[20:01:38] [Server thread/ERROR]: #!#!
[20:01:38] [Server thread/ERROR]: #!#! Something went horribly wrong with Skript.
[20:01:38] [Server thread/ERROR]: #!#! This issue is NOT your fault! You probably can't fix it yourself, either.
[20:01:38] [Server thread/ERROR]: #!#! It looks like you are using some plugin(s) that alter how Skript works (addons).
[20:01:38] [Server thread/ERROR]: #!#! Here is full list of them:
[20:01:38] [Server thread/ERROR]: #!#! skRayFall v1.9.25 (https://sk.rayfall.net/) TuSKe v1.8.2-Pikachu-Patch-3-MH-1 (github.com/Tuke-Nuke/TuSKe) SkBee v1.11.0 (https://github.com/ShaneBeee/SkBee) SkQuery v4.1.4-MH
[20:01:38] [Server thread/ERROR]: #!#! We could not identify which of those are specially related, so this might also be Skript issue.
[20:01:38] [Server thread/ERROR]: #!#! You should try disabling those plugins one by one, trying to find which one causes it.
[20:01:38] [Server thread/ERROR]: #!#! If the error doesn't disappear even after disabling all listed plugins, it is probably Skript issue.
[20:01:38] [Server thread/ERROR]: #!#! In that case, you will be given instruction on how should you report it.
[20:01:38] [Server thread/ERROR]: #!#! On the other hand, if the error disappears when disabling some plugin, report it to author of that plugin.
[20:01:38] [Server thread/ERROR]: #!#! Only if the author tells you to do so, report it to Skript's issue tracker.
[20:01:38] [Server thread/ERROR]: #!#!
[20:01:38] [Server thread/ERROR]: #!#! Stack trace:
[20:01:38] [Server thread/ERROR]: #!#! java.lang.NullPointerException
[20:01:38] [Server thread/ERROR]: #!#! at net.rayfall.eyesniper2.skrayfall.citizens.effects.EffCitizenSetSkin.execute(EffCitizenSetSkin.java:53)
[20:01:38] [Server thread/ERROR]: #!#! at ch.njol.skript.lang.Effect.run(Effect.java:51)
[20:01:38] [Server thread/ERROR]: #!#! at ch.njol.skript.lang.TriggerItem.walk(TriggerItem.java:60)
[20:01:38] [Server thread/ERROR]: #!#! at ch.njol.skript.lang.TriggerItem.walk(TriggerItem.java:88)
[20:01:38] [Server thread/ERROR]: #!#! at ch.njol.skript.effects.Delay$1.run(Delay.java:108)
[20:01:38] [Server thread/ERROR]: #!#! at org.bukkit.craftbukkit.v1_16_R3.scheduler.CraftTask.run(CraftTask.java:100)
[20:01:38] [Server thread/ERROR]: #!#! at org.bukkit.craftbukkit.v1_16_R3.scheduler.CraftScheduler.mainThreadHeartbeat(CraftScheduler.java:468)
[20:01:38] [Server thread/ERROR]: #!#! at net.minecraft.server.v1_16_R3.MinecraftServer.b(MinecraftServer.java:1427)
[20:01:38] [Server thread/ERROR]: #!#! at net.minecraft.server.v1_16_R3.DedicatedServer.b(DedicatedServer.java:436)
[20:01:38] [Server thread/ERROR]: #!#! at net.minecraft.server.v1_16_R3.MinecraftServer.a(MinecraftServer.java:1342)
[20:01:38] [Server thread/ERROR]: #!#! at net.minecraft.server.v1_16_R3.MinecraftServer.w(MinecraftServer.java:1130)
[20:01:38] [Server thread/ERROR]: #!#! at net.minecraft.server.v1_16_R3.MinecraftServer.lambda$a$0(MinecraftServer.java:291)
[20:01:38] [Server thread/ERROR]: #!#! at java.base/java.lang.Thread.run(Thread.java:829)
[20:01:38] [Server thread/ERROR]: #!#!
[20:01:38] [Server thread/ERROR]: #!#! Version Information:
[20:01:38] [Server thread/ERROR]: #!#! Skript: 2.5.3-MH (custom version)
[20:01:38] [Server thread/ERROR]: #!#! Flavor: selfbuilt-unknown
[20:01:38] [Server thread/ERROR]: #!#! Date: unknown
[20:01:38] [Server thread/ERROR]: #!#! Bukkit: 1.16.5-R0.1-SNAPSHOT
[20:01:38] [Server thread/ERROR]: #!#! Minecraft: 1.16.5
[20:01:38] [Server thread/ERROR]: #!#! Java: 11.0.11 (OpenJDK 64-Bit Server VM 11.0.11+9)
[20:01:38] [Server thread/ERROR]: #!#! OS: Linux amd64 5.8.0-53-generic
[20:01:38] [Server thread/ERROR]: #!#!
[20:01:38] [Server thread/ERROR]: #!#! Server platform: Paper
[20:01:38] [Server thread/ERROR]: #!#!
[20:01:38] [Server thread/ERROR]: #!#! Current node: null
[20:01:38] [Server thread/ERROR]: #!#! Current item: null
[20:01:38] [Server thread/ERROR]: #!#! Current trigger: command /test (simple event) (UHC.sk, line -1)
[20:01:38] [Server thread/ERROR]: #!#!
[20:01:38] [Server thread/ERROR]: #!#! Thread: Server thread
[20:01:38] [Server thread/ERROR]: #!#!
[20:01:38] [Server thread/ERROR]: #!#! Language: english
[20:01:38] [Server thread/ERROR]: #!#! Link parse mode: DISABLED
[20:01:38] [Server thread/ERROR]: #!#!
[20:01:38] [Server thread/ERROR]: #!#! End of Error.
[20:01:38] [Server thread/ERROR]: #!#!

Server Information

  • Server Version and Type: Minecraft 1.16.4/5, PAPER
  • Skript Version: 2.5.3-MH (custom version) (minehut server, basically just 2.5.3)
  • skRayFall Version: 1.9.25
  • Additional Plugins: SkQuery (4.1.4-MH, again basically just 4.1.4), MorkazSk (1.2) SkBee (1.11.0), and TuSKe (1.8.2-PIkachu-Patch-3-MH-1)

As said in the console error, it could not identify any of them causing the issue

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants