Skip to content
Success

Changes

Summary

  1. Clientizen Bridge (#409) (commit: ae2d04b) (details)
Commit ae2d04b412396925dc2af6a1e885e04a5952c9d4 by noreply
Clientizen Bridge (#409)

* WIP `DataSerializer`

* Start on server-side & few addtions to `DataSerializer`

* Small fixes

* Cleanups + opti

* Clientizen - Fixes, Testing tag, and log messages

* Fix channel handling in `onPluginMessageReceived`

* Have the client send confirmation

* Wait 20 ticks before sending scripts

To make sure the client is properly connected and is ready to receive packets

* Fix DataSerializer#writeByteArray not writing size

* Update lib

* Update submodule ref

* Cleanup & Refactor clientizen support

* send byte[] method, null support, channels fix,

* Formatting fix

* Rename `InChannelRunnable` to `ClientizenReceiver`

* Rename param

* oops rename receiver map as well

* Add `DataDeserializer`

* Clientizen events system (#2)

* Start on WIP untested event system

* Store `ClientizenEvent`s as a Map

* Linked player, Event IDs, check for invalid events

* Avoid duplicate event IDs

* `ClientizenEvent` suffix + cleanups

* Remove `PlayerPressesKey` clientizen event

* Remove `PlayerPressesKey` clientizen event

* Cleanup

* `Channels#id`, call `fire` by default, add comment

* Add `PlayerPressReleaseKey` clientizen event

* `clientizen event` and remove ServerEvent system (#4)

* Refactor, add `ClientizenEventScriptEvent`

* Cleanup & read event id

* Better param name

* Add `clientrun` command (#5)

* Initial work

* Script arg has no prefix

* Support sending nullable data, `path` is nullable

* Fix syntax

* Initial cleanups

* Add basic config option

* Rename to `ClientizenBridge`

* Add meta

* Add config option for `clientizen event`

* Correct link in config

* Don't always debug client script loading

* Add group to `PlayerTag.is_clientizen`

* `is_clientizen` -> `has_clientizen`

* `ClientizenEvent` - fix example, add warning

* `ClientRunCommand` - better player errors

* `DataSerializer` - remove `@NotNull` annotations

* `ClientizenBridge` - remove `final`s

* Add packet length limiter

* Fix config from previous commit

* `ClientizenEventScriptEvent` - don't pre-parse

* Remove delay when initially sending scripts

See https://github.com/DenizenScript/Clientizen/commit/b58b9ba1b23d1718d5565426b1322cb76768ec15

* Use Netty `ByteBuf`s, remove unused methods

* Use existing packet-based networking

* Handle event packet config within the packet

* remove raw access to MapTag.map

* Improve `max packet length`'s comment
(commit: ae2d04b)
The file was modifiedsrc/main/resources/config.yml
The file was removedsrc/main/java/com/denizenscript/depenizen/bukkit/bungee/PacketIn.java
The file was removedsrc/main/java/com/denizenscript/depenizen/bukkit/bungee/PacketOut.java
The file was modifiedsrc/main/java/com/denizenscript/depenizen/bukkit/bungee/packets/out/KeepAlivePacketOut.java
The file was modifiedsrc/main/java/com/denizenscript/depenizen/bukkit/bungee/packets/in/KeepAlivePacketIn.java
The file was modifiedsrc/main/java/com/denizenscript/depenizen/bukkit/bungee/packets/out/ExecuteCommandPacketOut.java
The file was addedsrc/main/java/com/denizenscript/depenizen/bukkit/networking/PacketOut.java
The file was addedsrc/main/java/com/denizenscript/depenizen/bukkit/bungee/BungeePacketIn.java
The file was addedsrc/main/java/com/denizenscript/depenizen/bukkit/clientizen/network/packets/FireEventPacketIn.java
The file was modifiedsrc/main/java/com/denizenscript/depenizen/bukkit/commands/bungee/BungeeExecuteCommand.java
The file was addedsrc/main/java/com/denizenscript/depenizen/bukkit/clientizen/network/packets/ReceiveConfirmPacketIn.java
The file was modifiedsrc/main/java/com/denizenscript/depenizen/bukkit/bungee/packets/in/ProxyPingPacketIn.java
The file was addedsrc/main/java/com/denizenscript/depenizen/bukkit/clientizen/network/ClientizenPacketIn.java
The file was modifiedsrc/main/java/com/denizenscript/depenizen/bukkit/bungee/packets/out/ProxyCommandResultPacketOut.java
The file was addedsrc/main/java/com/denizenscript/depenizen/bukkit/bungee/BungeePacketOut.java
The file was modifiedsrc/main/java/com/denizenscript/depenizen/bukkit/bungee/packets/in/YourInfoPacketIn.java
The file was modifiedsrc/main/java/com/denizenscript/depenizen/bukkit/bungee/packets/in/PlayerSwitchServerPacketIn.java
The file was modifiedsrc/main/java/com/denizenscript/depenizen/bukkit/bungee/packets/out/redirectable/RunScriptPacketOut.java
The file was addedsrc/main/java/com/denizenscript/depenizen/bukkit/networking/PacketIn.java
The file was modifiedsrc/main/java/com/denizenscript/depenizen/bukkit/bungee/packets/in/ReadTagPacketIn.java
The file was addedsrc/main/java/com/denizenscript/depenizen/bukkit/clientizen/network/ClientizenPacketOut.java
The file was modifiedsrc/main/java/com/denizenscript/depenizen/bukkit/bungee/packets/out/MyInfoPacketOut.java
The file was addedsrc/main/java/com/denizenscript/depenizen/bukkit/clientizen/network/packets/SetScriptsPacketOut.java
The file was modifiedsrc/main/java/com/denizenscript/depenizen/bukkit/bungee/packets/in/TagResponsePacketIn.java
The file was modifiedsrc/main/java/com/denizenscript/depenizen/bukkit/bungee/packets/in/ProxyCommandPacketIn.java
The file was modifiedsrc/main/java/com/denizenscript/depenizen/bukkit/bungee/packets/out/ExecutePlayerCommandPacketOut.java
The file was addedsrc/main/java/com/denizenscript/depenizen/bukkit/clientizen/ClientizenBridge.java
The file was modifiedsrc/main/java/com/denizenscript/depenizen/bukkit/bungee/packets/in/PlayerQuitPacketIn.java
The file was addedsrc/main/java/com/denizenscript/depenizen/bukkit/clientizen/commands/ClientRunCommand.java
The file was modifiedsrc/main/java/com/denizenscript/depenizen/bukkit/bungee/packets/out/RedirectPacketOut.java
The file was modifiedsrc/main/java/com/denizenscript/depenizen/bukkit/bungee/packets/in/RunScriptPacketIn.java
The file was modifiedsrc/main/java/com/denizenscript/depenizen/bukkit/bungee/packets/out/redirectable/ReadTagPacketOut.java
The file was modifiedsrc/main/java/com/denizenscript/depenizen/bukkit/bungee/packets/in/RunCommandsPacketIn.java
The file was modifiedsrc/main/java/com/denizenscript/depenizen/bukkit/bungee/packets/in/PlayerJoinPacketIn.java
The file was modifiedsrc/main/java/com/denizenscript/depenizen/bukkit/bungee/packets/in/RemoveServerPacketIn.java
The file was modifiedsrc/main/java/com/denizenscript/depenizen/bukkit/bungee/packets/out/ControlsProxyCommandPacketOut.java
The file was addedsrc/main/java/com/denizenscript/depenizen/bukkit/clientizen/network/NetworkManager.java
The file was modifiedsrc/main/java/com/denizenscript/depenizen/bukkit/bungee/packets/out/ControlsProxyPingPacketOut.java
The file was modifiedsrc/main/java/com/denizenscript/depenizen/bukkit/bungee/packets/out/ProxyPingResultPacketOut.java
The file was modifiedsrc/main/java/com/denizenscript/depenizen/bukkit/bungee/BungeeBridge.java
The file was modifiedsrc/main/java/com/denizenscript/depenizen/bukkit/bungee/packets/in/AddServerPacketIn.java
The file was modifiedsrc/main/java/com/denizenscript/depenizen/bukkit/bungee/packets/out/redirectable/RunCommandsPacketOut.java
The file was addedsrc/main/java/com/denizenscript/depenizen/bukkit/clientizen/ClientizenEventScriptEvent.java
The file was addedsrc/main/java/com/denizenscript/depenizen/bukkit/clientizen/network/packets/RunClientScriptPacketOut.java
The file was modifiedsrc/main/java/com/denizenscript/depenizen/bukkit/bungee/packets/out/redirectable/TagResponsePacketOut.java
The file was modifiedsrc/main/java/com/denizenscript/depenizen/bukkit/Depenizen.java
The file was modifiedsrc/main/java/com/denizenscript/depenizen/bukkit/bungee/BungeeClientHandler.java