example
example

已解决√ 求助 txadmin白名单

xieron

活跃的用户
论坛元老
高级用户
认证用户
黄金
317.68 黄金
我想要实现一个外部白名单审核插件,现在差不多都实现了,就差一个审核机制,但是我发现txadmin只有一个监听白名单变化的事件,并没有找到可以审核白名单的事件
所以我想要问的就是,txadmin的白名单怎么才能实现在外部审核,我知道可以自己写一个白名单系统来实现这个功能,但是我不是很喜欢自己额外写一个白名单系统
 
领取红包用户
xieron X JaysonLiu jiaonang 2022090909016
感谢楼主的红包!

xieron领取了您的红包获得了3.40黄金
 
感谢楼主的红包!

Xiaoqi领取了您的红包获得了8.24黄金
 
感谢楼主的红包!

JaysonLiu领取了您的红包获得了3.14黄金
 

我想要实现一个外部白名单审核插件,现在差不多都实现了,就差一个审核机制,但是我发现txadmin只有一个监听白名单变化的事件,并没有找到可以审核白名单的事件
所以我想要问的就是,txadmin的白名单怎么才能实现在外部审核,我知道可以自己写一个白名单系统来实现这个功能,但是我不是很喜欢自己额外写一个白名单系统
你想在游戏内脚本实现还是类似txadmin的网页后台?txadmin应该有api的
 
感谢楼主的红包!

jiaonang领取了您的红包获得了2.88黄金
 


你想在游戏内脚本实现还是类似txadmin的网页后台?txadmin应该有api的
txadmin只有监听白名单变化的api,没有审核的api
 

Whitelist-related Events​

txAdmin:events:whitelistPlayer​

Broadcasted when a player is whitelisted, or has the whitelisted status revoked.
This event is only fired when the player is already registered, and is not related to whitelist requests or approved whitelists pending join.
Event Data:

  • action: /.addedremoved
  • license: The license of the player.
  • playerName: The player display name.
  • adminName: Name of the admin that performed the action.

txAdmin:events:whitelistPreApproval​

Broadcasted when manually adding some identifier to the whitelist pre-approvals, meaning that as soon as a player with this identifier connects to the server, they will be saved to the database as a whitelisted player (without triggering ).
This event is not gonna be broadcasted when a whitelist request is approved, for that use . This can be done in the Whitelist Page, or using the Discord bot slash command.
Event Data:txAdmin:events:whitelistPlayertxAdmin:events:whitelistRequest/whitelist <member>

  • action: /.addedremoved
  • identifier: The identifier that was pre-approved (eg. ).discord:xxxxxx
  • playerName?: The player display name, except when action is .removed
  • adminName: Name of the admin that performed the action.

txAdmin:events:whitelistRequest​

Broadcasted whenever some event related to the whitelist requests happen.
Event Data:

  • action: ///.requestedapproveddenieddeniedAll
  • playerName?: The player display name, except when action is .deniedAll
  • requestId?: The request ID (eg. ), except when action is .RxxxxdeniedAll
  • license?: The license of the player/requester, except when action is .deniedAll
  • adminName?: Name of the admin that performed the action, except when action is .requested
 
后退
顶部