接口 ServerEvents.Player.Leave.AllowMessage
- 函数接口:
- 这是一个函数接口, 因此可用作 lambda 表达式或方法引用的赋值目标。
-
方法概要
修饰符和类型方法说明booleanallowLeaveMessage(@NotNull net.minecraft.server.level.ServerPlayer player, @NotNull net.minecraft.network.chat.Component message) Called when a player left a server
-
方法详细资料
-
allowLeaveMessage
boolean allowLeaveMessage(@NotNull @NotNull net.minecraft.server.level.ServerPlayer player, @NotNull @NotNull net.minecraft.network.chat.Component message) Called when a player left a server- 参数:
player- the playermessage- the leave reason- 返回:
trueif should broadcast the message, otherwisefalse
-