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

There is an import bug...? #47

Closed
0XPYEX0 opened this issue Jan 16, 2022 · 3 comments
Closed

There is an import bug...? #47

0XPYEX0 opened this issue Jan 16, 2022 · 3 comments

Comments

@0XPYEX0
Copy link

0XPYEX0 commented Jan 16, 2022

Describe the bug
When I reload the skript, the exception happened

To reproduce
Execute Skript reload command, then it happened

These are my codes:

import:
	com.meowj.langutils.lang.LanguageHelper
on swap items:
	if player is sneaking:
		set {_p} to player
		set {_b} to target block of {_p}
		set {_type} to {_b}.getType()
		set {_localeType} to LanguageHelper.getMaterialName({_type}, {_p})
		send action bar "&a你看向的方块是:&f %{_localeType}%" to {_p}

Expected behavior
Reload normally

Screenshots
No

Server information

  • skript-reflect: 2.2.3
  • Skript: 2.6
  • Bukkit: 1.18.1-R0.1-SNAPSHOT
  • Minecraft: 1.18.1
  • Java: 17.0.1 (Java HotSpot(TM) 64-Bit Server VM 17.0.1+12-LTS-39)
  • OS: Linux amd64 3.10.0-1160.25.1.el7.x86_64

Additional context
This is error log: https://paste.ubuntu.com/p/v2TCwnbbB9/

@TPGamesNL
Copy link
Member

Can you send the jar file with that imported class in it?

@0XPYEX0
Copy link
Author

0XPYEX0 commented Jan 16, 2022

LangUtils-3.2.3.jar.zip
unzip it

@TPGamesNL
Copy link
Member

That plugin isn't made for your server version, it depends on server classes that aren't present in 1.18. This makes it so the classes aren't really accessible anymore reflectively, so skript-reflect throws an exception (#20)

You should update that plugin to get a version that supports your server version

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

No branches or pull requests

2 participants