Add support for 'use-player-login-ip', 'require-player-login-ip' - map player login IP addresses to web chat addresses

This commit is contained in:
Mike Primm 2011-12-29 14:19:03 +08:00 committed by mikeprimm
parent 09fbf312ac
commit e009aefb18
7 changed files with 187 additions and 12 deletions

View file

@ -27,6 +27,10 @@ components:
hidewebchatip: false
trustclientname: false
includehiddenplayers: false
# (optional) if true, player login IDs will be used for web chat when their IPs match
use-player-login-ip: true
# (optional) if use-player-login-ip is true, setting this to true will cause chat messages not matching a known player IP to be ignored
require-player-login-ip: false
# # Optional - make players hidden when they are inside/underground/in shadows (#=light level: 0=full shadow,15=sky)
# hideifshadow: 4
# # Optional - make player hidden when they are under cover (#=sky light level,0=underground,15=open to sky)
@ -39,8 +43,10 @@ components:
# webchat-interval: 5
# hidewebchatip: false
# includehiddenplayers: false
# hideifshadow: 4
# hideifundercover: 14
# use-player-login-ip: false
# require-player-login-ip: false
# hideifshadow: 0
# hideifundercover: 0
- class: org.dynmap.SimpleWebChatComponent
allowchat: true
@ -270,6 +276,9 @@ defaultmap: flat
# Option to enable workaround for incorrectly encoded unicode in Cyrillic MC/Bukkit (not good for other code pages)
cyrillic-support: false
# If true, make persistent record of IP addresses used by player logins, to support web IP to player matching
persist-ids-by-ip: true
# NOTE: the 'templates' section is now found in the 'templates' directory
# Templates CAN still be defined in configuration.txt, as before 0.20
templates:

View file

@ -30,6 +30,7 @@ commands:
/<command> purgequeue - Set tile update queue to empty
/<command> pause - Show render pause state
/<command> pause <all|none|full|update> - Set render pause state
/<command> ids-for-ip <ipaddress> - Show player IDs that have logged in from given IP address
dmarker:
description: Manipulate map markers
@ -83,6 +84,8 @@ permissions:
dynmap.resetstats: true
dynmap.sendtoweb: true
dynmap.purgequeue: true
dynmap.ids-for-ip: true
dynmap.ips-for-id: true
dynmap.pause: true
dynmap.marker.add: true
dynmap.marker.update: true
@ -144,6 +147,12 @@ permissions:
dynmap.pause:
description: Allows /dynmap pause
default: op
dynmap.ids-for-ip:
description: Allows /dynmap ids-for-ip
default: op
dynmap.ips-for-id:
description: Allows /dynmap ips-for-id
default: op
dynmap.marker.add:
description: Allows /dmarker add
default: op