Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
BungeeExecute update and 'as:player'
- Loading branch information
1 parent
5db2ae1
commit 2d65e00
Showing
2 changed files
with
54 additions
and
31 deletions.
There are no files selected for viewing
25 changes: 25 additions & 0 deletions
25
.../com/denizenscript/depenizen/bukkit/bungee/packets/out/ExecutePlayerCommandPacketOut.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,25 @@ | ||
package com.denizenscript.depenizen.bukkit.bungee.packets.out; | ||
|
||
import com.denizenscript.depenizen.bukkit.bungee.PacketOut; | ||
import io.netty.buffer.ByteBuf; | ||
|
||
public class ExecutePlayerCommandPacketOut extends PacketOut { | ||
|
||
public ExecutePlayerCommandPacketOut(String player, String command) { | ||
this.player = player; | ||
this.command = command; | ||
} | ||
|
||
public String player, command; | ||
|
||
@Override | ||
public int getPacketId() { | ||
return 18; | ||
} | ||
|
||
@Override | ||
public void writeTo(ByteBuf buf) { | ||
writeString(buf, player); | ||
writeString(buf, command); | ||
} | ||
} |
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