skript-mirror icon indicating copy to clipboard operation
skript-mirror copied to clipboard

Conflict with ThatPacketAddon on 1.14.4 (Paper and spigot)

Open Anarchick opened this issue 6 years ago • 2 comments

https://github.com/TlatoaniHJ/ThatPacketAddon/issues/2

*Tested on spigot and Paper 1.14.4 latest versions ProtocolLib for 1.14.4 New fresh server with only Skript_2.4-beta7, ThatPacketAddon-1.0-BETA.3 , ProtocolLib#16 , skript-mirror-1.0.0 (also tested with 0.19.1)

Zero modifications of any config file

Only 1 script .sk : `import: java.util.Calendar

on packet event play_server_chat with high priority: send "High!!!!" to console`

Both Skript-mirror and ThatPacketAddon works, but not together :

exemple of error ("The Current node:" does not show where is the problem) : https://pastebin.com/310UMw5M

Anarchick avatar Sep 29 '19 17:09 Anarchick

Hey, can you also test this with 2.0.0?

btk5h avatar Sep 29 '19 19:09 btk5h

seems to work with 2.0.0 SNAPSHOT from https://skripttools.net/addons?q=mirror (hard to found your 2.0.0 !!!) BUT with v1.0.0 or 0.19.1 the following code broadcast the right number, andt with 2.0.0 it broadcast the wrong (broadcast the year and not day of week)

import:
    java.util.Calendar

on load:
    set {_calendar} to Calendar.getInstance()
    broadcast "<green>%{_calendar}.get(Calendar.DAY_OF_WEEK!)%"

EDIT: you removed the "!" from ENUM, code work

Anarchick avatar Sep 30 '19 13:09 Anarchick