Skip to content

Releases: Anarchick/skript-packet

Support Skript 2.10.0

26 Jan 11:16

Choose a tag to compare

⚠️Require Skript 2.10.0+ , does not works below⚠️
I have not fully implemented new 2.10.0 API since it's experimental and subject to changes. SP will break in future when Skript will remove the old API.

Tested on :
Paper 1.20.1 + 1.21.4
Skript 2.10.0 ( Not working bellow )
ProtocolLib 5.2.0 + 5.4.0-SNAPSHOT-739
Java 21

Note : For recent Minecraft version, you may have to use the latest ProtolLib snapshot.

Change :

  • NMS biome ids are now in a config file since paper 1.21+ support custom biomes

Fix :

  • support Skript 2.10.0

Full Changelog: 2.2.2...3.0.0

You can support my work here ko-fi.
You might also like to see my other plugins, such as Server Keyboard Bridge or SoundSearch.

1.21+ support

25 Oct 10:41

Choose a tag to compare

Tested on :
Paper 1.21.1
Skript 2.9.3 ( Not working bellow 2.7.0 )
ProtocolLib 5.3.0-SNAPSHOT-732
Java 21

Note : For recent Minecraft version, you may have to use the latest ProtolLib snapshot.

Change :

  • new Update checker

Fix :

  • Default event and Sync event can't be used both
  • Console spam on reload when listen async
  • 1.21+ support

Full Changelog : 2.2.1...2.2.2

You can support my work here ko-fi.
You might also like to see my other plugins, such as Server Keyboard Bridge or SoundSearch.

small fix

30 Apr 17:41

Choose a tag to compare

fix #32 and change the update checker for https://github.com/mfnalex/Spigot-UpdateChecker

1.19.4 & 1.20.4 Update

22 Mar 11:25

Choose a tag to compare

Tested on :
Paper 1.19.4 / 1.20.4
Skript 2.7.0 / 2.8.3 ( Not working bellow 2.7.0 )
ProtocolLib 5.2.0-SNAPSHOT-679
Java 17

Note : For using ProtocolLib in 1.20.4, you can’t use the 5.1.0 ! You have to use the latest 5.2.0 snapshot.

As you can see, the developer of ProtocolLib has not shown any signs of activity for several months. (Please do not ask him to update ProtocolLib, respect his personal life.) This means that Skript-Packet may have its last update if a new version of Minecraft is not compatible with ProtocolLib.

Even if you don’t see it, it took me 10 days, working 4-7 hours each day, to make this update. You can support my work here ko-fi.
You might also like to see my other plugins, such as SoundSearch.

What is new :

  • Update biome Id for 1.20.4
  • Added an expression to get Bukkit Material
  • Added an expression to get Item from Material
  • Added conditions : is Bukkit material / is Java List / is Java Set / is NMS / is from client / is from server
  • More converters !

Change :

  • DataWatcher has been fully rewrite and works only for mc 1.19+ take a look on the wiki
  • You can wrap field, fields and fields classes with the same expression
  • Remove unsupported packettypes from all packettypes

Fix :

  • Fix Management of packet listener not working as expected
  • Some toString() throwing errors

Known bug :

  • If you listen an async packet, you may not be able to listen sync or default until restarting the server (maybe a Skript issue ?)

Full Changelog : 2.1.2...2.2.0

Bug fixes

04 Jun 11:11

Choose a tag to compare

Tested on :
Paper 1.17.1 / 1.18.2 / 1.19.4
Skript 2.6.2 / 2.6.4 / 2.7.0-beta2
ProtocolLib 4.7.0 / 4.8.0 / 5.0.0
Java 17

If you have any issue you can contact me on the Skript-Chat discord #skript-packet or open a github issue

Fix :

  • Fix crash using Skript 2.7+ due to SkriptLang/Skript#4108 (#24)
  • Fix UTF-8 encoding (#21)
  • Fix update checker (will be visible on futur update)

Planned:

  • Adding support for new 1.20 cherry blossom biome
  • Adding new functionalities of ProtocolLib 5.0.0

Full Changelog: 2.1.1...2.1.2

Fix reload issue

26 Jan 10:08

Choose a tag to compare

please use #21 instead of this build if you have pattern compiling issue

Fix :

  • Reload a script cause the duplication of event call #16

Known bug :

  • Pattern compiling exception when using expression with parse mark. Use #21 as hotfix !

Code clean and bug fix

04 Jun 10:16

Choose a tag to compare

Hi I have not full tested this version, if you see any issue, tell me on Skript-Chat discord or write an issue on this github.
Tested on Paper1.17.1 and Paper1.18.2 , Skript 2.6 and 2.6.2

Even if this version seems small, it's not. Skript-Packet is one of my first Java plugin and I have learn more things since the last update (~8 month). This update aims to clean the code with my actual knowledge.

⚠This version NEED Java 17

What is new :

  • Auto-Convert to numbers from entities
  • Improve number array utility
  • Support Auto-convert for IntList and Vector
  • Updated to 1.18 biomes

Fix :

  • Fix crash using Skript 2.6.2
  • Fix a bug when a script is reloaded

Fix incompatibility

17 Sep 12:53
595e50a

Choose a tag to compare

Fix a bug with Skript 2.5.3 and below.

Better and smaller

10 Sep 08:14
73de33b

Choose a tag to compare

Skript-Packet aims to be easiest as possible (even if packets are hard understand ...). So I have removed a lot of previous features. Don't worry, all of this features has been merge in ExprNMS or Auto-Converter. In conclusion you have less syntaxes and they are easy to use !
If you want to use this deprecated syntaxes you HAVE TO fork this project and enable them. I will not give support on them.

Please read the wiki

⚠BUG : Does not works with Skript2.5.3 and bellow

What is new :

  • Support for Skript 2.6
  • DataWatcher for metadata !
  • default/sync/async mode for packet Listening !!! Becarful with async mode, you can't use non-thread-safe operation (e.g World Editing)
  • Do section (It's experimental and can be deleted in future ... no doc for this, look the code if you are intersted)

Change :

  • EVERYTHING !!! (A lot of Expressions has been removed)
  • ExprNMS has been rework
  • Auto-Converter has been rework (and is boosted with steroïds) WIKI
  • SkriptPacketEventListener has a Manager ! Only support reload for now
  • Update checker on plugin load
  • ExprEnum show more informations on script load

Fix :

  • Enum not working with protocolLib for 1.17
  • Fields classes does not show null object

⚠This update add a lot of break change. Please read the doc and wiki before asking help for "It does not works with 2.0"

Note: Thanks you for using my addon bstats ❤️

NMS to Bukkit update !

07 Jul 20:17

Choose a tag to compare

Works with 1.17 if you use the right version of ProtocolLib.

FIX

  • Fix NPE with "Packet Fields"
  • Fix NPE with "Packet Fields Classes"

CHANGED

  • [packet] field %number% of %packet% -> [object] [packet] field %number% [of %-packet%]
  • [all] fields of [packet] %packet% -> [all] [packet] fields [of %-packet%]
  • [all] fields class[es] of [packet] %packet% -> [all] [packet] fields class[es] [of %-packet%]

ADDED

  • Get net.md_5.bungee.api.chat.BaseComponent from a string
  • Get the NMS (net.minecraft.server) TextComponent from a string
  • Add expressions to get Chunk / Location / World / Entity / Player / ItemStack / Material from an NMS Object
  • Convert an NMS (net.minecraft.server) ChatComponentText to a Json string
  • Get NMS NBTTagCompound from a Json String
  • Get an Enum from a class
  • Get a java.util.UUID from a String UUID or create new one
  • Get a readable text from a Json string (json Chat Format)