Skip to content

steakteam/CHProtocolSupport

 
 

Repository files navigation

CHProtocolSupport

ProtocolSupport plugin API for CommandHelper

Functions

get_protocol_version

Arg: [player]

Returns a protocol version string.

Exmaples

get_protocol_version('EntryPoint')

get_protocol_data

Arg: [protocolname]

Returns a protocol data array. There is keys id, order, type, name, internalname

Examples

get_protocol_data('MINECRAFT_1_14_3')

pget_protocol_data

Arg: [player]

Returns a protocol data array. There is keys id, order, type, name, internalname

Examples

pget_protocol_data('EntryPoint')

Version limit example

@order17 = get_protocol_data('MINECRAFT_1_7_10')[order]
bind(player_join, null, null, @e, @order17) {
    @playerOrder = pget_protocol_data(@e[player])[order]
    if (@order17 >= @playerOrder) {
        pkick(@e[player], 'Outdated client!')
    }
}

Protocol Names

MINECRAFT_FUTURE, MINECRAFT_1_14_3, MINECRAFT_1_14_2, MINECRAFT_1_14_1, MINECRAFT_1_14, MINECRAFT_1_13_2, MINECRAFT_1_13_1, MINECRAFT_1_13, MINECRAFT_1_12_2, MINECRAFT_1_12_1, MINECRAFT_1_12, MINECRAFT_1_11_1, MINECRAFT_1_11, MINECRAFT_1_10, MINECRAFT_1_9_4, MINECRAFT_1_9_2, MINECRAFT_1_9_1, MINECRAFT_1_9, MINECRAFT_1_8, MINECRAFT_1_7_10, MINECRAFT_1_7_5, MINECRAFT_1_6_4, MINECRAFT_1_6_2, MINECRAFT_1_6_1, MINECRAFT_1_5_2, MINECRAFT_1_5_1, MINECRAFT_1_4_7, MINECRAFT_LEGACY, UNKNOWN

You can also check this from Enum ProtocolVersion

About

ProtocolSupport plugin API for CommandHelper

Topics

Resources

Stars

Watchers

Forks

Packages

 
 
 

Languages

  • Java 100.0%