Made certain classes private. No need to expose them to the API.
Dieser Commit ist enthalten in:
Ursprung
62d9afd1d1
Commit
286e1159e9
@ -23,7 +23,7 @@ import net.minecraft.server.Packet;
|
|||||||
*
|
*
|
||||||
* @author Kristian
|
* @author Kristian
|
||||||
*/
|
*/
|
||||||
public class NetworkFieldInjector extends PlayerInjector {
|
class NetworkFieldInjector extends PlayerInjector {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Marker interface that indicates a packet is fake and should not be processed.
|
* Marker interface that indicates a packet is fake and should not be processed.
|
||||||
|
@ -16,7 +16,7 @@ import org.bukkit.entity.Player;
|
|||||||
*
|
*
|
||||||
* @author Kristian
|
* @author Kristian
|
||||||
*/
|
*/
|
||||||
public class NetworkObjectInjector extends PlayerInjector {
|
class NetworkObjectInjector extends PlayerInjector {
|
||||||
public NetworkObjectInjector(Player player, PacketFilterManager manager, Set<Integer> sendingFilters) throws IllegalAccessException {
|
public NetworkObjectInjector(Player player, PacketFilterManager manager, Set<Integer> sendingFilters) throws IllegalAccessException {
|
||||||
super(player, manager, sendingFilters);
|
super(player, manager, sendingFilters);
|
||||||
}
|
}
|
||||||
|
@ -63,6 +63,10 @@ public final class PacketFilterManager implements ProtocolManager {
|
|||||||
*/
|
*/
|
||||||
NETWORK_HANDLER_FIELDS,
|
NETWORK_HANDLER_FIELDS,
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Override the network handler object itself.
|
||||||
|
*/
|
||||||
|
NETWORK_MANAGER_OBJECT
|
||||||
}
|
}
|
||||||
|
|
||||||
// Create a concurrent set
|
// Create a concurrent set
|
||||||
@ -352,6 +356,8 @@ public final class PacketFilterManager implements ProtocolManager {
|
|||||||
switch (playerHook) {
|
switch (playerHook) {
|
||||||
case NETWORK_HANDLER_FIELDS:
|
case NETWORK_HANDLER_FIELDS:
|
||||||
return new NetworkFieldInjector(player, this, sendingFilters);
|
return new NetworkFieldInjector(player, this, sendingFilters);
|
||||||
|
case NETWORK_MANAGER_OBJECT:
|
||||||
|
return new NetworkObjectInjector(player, this, sendingFilters);
|
||||||
}
|
}
|
||||||
|
|
||||||
throw new IllegalArgumentException("Cannot construct a player injector.");
|
throw new IllegalArgumentException("Cannot construct a player injector.");
|
||||||
|
In neuem Issue referenzieren
Einen Benutzer sperren