Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* 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 DenizenScript/Clientizen@b58b9ba * 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
- Loading branch information
Showing
47 changed files
with
749 additions
and
133 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
11 changes: 11 additions & 0 deletions
11
src/main/java/com/denizenscript/depenizen/bukkit/bungee/BungeePacketIn.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
package com.denizenscript.depenizen.bukkit.bungee; | ||
|
||
import com.denizenscript.depenizen.bukkit.networking.PacketIn; | ||
|
||
public abstract class BungeePacketIn extends PacketIn { | ||
|
||
@Override | ||
public void fail(String reason) { | ||
BungeeBridge.instance.handler.fail(reason); | ||
} | ||
} |
11 changes: 11 additions & 0 deletions
11
src/main/java/com/denizenscript/depenizen/bukkit/bungee/BungeePacketOut.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
package com.denizenscript.depenizen.bukkit.bungee; | ||
|
||
import com.denizenscript.depenizen.bukkit.networking.PacketOut; | ||
|
||
public abstract class BungeePacketOut extends PacketOut { | ||
|
||
public boolean canBeFirstPacket = false; | ||
|
||
public abstract int getPacketId(); | ||
|
||
} |
26 changes: 0 additions & 26 deletions
26
src/main/java/com/denizenscript/depenizen/bukkit/bungee/PacketIn.java
This file was deleted.
Oops, something went wrong.
19 changes: 0 additions & 19 deletions
19
src/main/java/com/denizenscript/depenizen/bukkit/bungee/PacketOut.java
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 2 additions & 2 deletions
4
src/main/java/com/denizenscript/depenizen/bukkit/bungee/packets/in/KeepAlivePacketIn.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
12 changes: 6 additions & 6 deletions
12
src/main/java/com/denizenscript/depenizen/bukkit/bungee/packets/in/ReadTagPacketIn.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
14 changes: 7 additions & 7 deletions
14
src/main/java/com/denizenscript/depenizen/bukkit/bungee/packets/in/RunCommandsPacketIn.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.