Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: ワールドごとのWGの設定差分を追加 #1605

Merged
merged 2 commits into from
Dec 26, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -0,0 +1,332 @@
apiVersion: v1
kind: ConfigMap
metadata:
name: common-worldguard-configs
data:
# メイン
main-Blacklist.txt: |
#
# WorldGuard blacklist
#
# The blacklist lets you block actions, blocks, and items from being used.
# You choose a set of "items to affect" and a list of "actions to perform."
#
###############################################################################
#
# Example to block some ore mining and placement:
# [coalore,goldore,ironore]
# on-break=deny,log,kick
# on-place=deny,tell
#
# Events that you can detect:
# - on-break (when a block of this type is about to be broken)
# - on-destroy-with (the item/block held by the user while destroying)
# - on-place (a block is being placed)
# - on-use (an item like flint and steel or a bucket is being used)
# - on-interact (when a block in used (doors, chests, etc.))
# - on-drop (an item is being dropped from the player's inventory)
# - on-acquire (an item enters a player's inventory via some method)
# - on-dispense (a dispenser is about to dispense an item)
#
# Actions (for events):
# - deny (deny completely, used blacklist mode)
# - allow (used in whitelist mode)
# - notify (notify admins with the 'worldguard.notify' permission)
# - log (log to console/file/database)
# - tell (tell a player that that's not allowed)
# - kick (kick player)
# - ban (ban player)
#
# Options:
# - ignore-groups (comma-separated list of groups to not affect)
# - ignore-perms (comma-separated list of permissions to not affect - make up
# your very own permissions!)
# - comment (message for yourself that is printed with 'log' and 'notify')
# - message (optional message to show the user instead; %s is the item name)
#
###############################################################################
#
# For more information, see:
# http://wiki.sk89q.com/wiki/WorldGuard/Blacklist
#
###############################################################################
#
# Some examples follow.
# REMEMBER: If a line has # in front, it will be ignored.
#

# Deny lava buckets
#[lavabucket]
#ignore-perms=my.own.madeup.permission
#ignore-groups=admins,mods
#on-use=deny,tell

# Deny some ore
#[coalore,goldore,ironore]
#ignore-groups=admins,mods
#on-break=notify,deny,log

# Some funky data value tests
#[wood:0;>=2]
#ignore-groups=admins,mods
#on-break=notify,deny,log

# 岩盤設置無効化
[bedrock]
ignore-groups=admin
on-place=deny,log,tell
on-break=deny,log,tell

# コーラスフルーツ無効化
[chorus_fruit]
ignore-groups=admin
on-use=deny,log,tell
on-interact=deny,log,tell

# オブザーバーブロック設置無効化
[observer]
ignore-groups=admin
on-place=deny,log,tell

# 第1、2整地
world_SW-Blacklist.txt: |
#
# WorldGuard blacklist
#
# The blacklist lets you block actions, blocks, and items from being used.
# You choose a set of "items to affect" and a list of "actions to perform."
#
###############################################################################
#
# Example to block some ore mining and placement:
# [coalore,goldore,ironore]
# on-break=deny,log,kick
# on-place=deny,tell
#
# Events that you can detect:
# - on-break (when a block of this type is about to be broken)
# - on-destroy-with (the item/block held by the user while destroying)
# - on-place (a block is being placed)
# - on-use (an item like flint and steel or a bucket is being used)
# - on-interact (when a block in used (doors, chests, etc.))
# - on-drop (an item is being dropped from the player's inventory)
# - on-acquire (an item enters a player's inventory via some method)
# - on-dispense (a dispenser is about to dispense an item)
#
# Actions (for events):
# - deny (deny completely, used blacklist mode)
# - allow (used in whitelist mode)
# - notify (notify admins with the 'worldguard.notify' permission)
# - log (log to console/file/database)
# - tell (tell a player that that's not allowed)
# - kick (kick player)
# - ban (ban player)
#
# Options:
# - ignore-groups (comma-separated list of groups to not affect)
# - ignore-perms (comma-separated list of permissions to not affect - make up
# your very own permissions!)
# - comment (message for yourself that is printed with 'log' and 'notify')
# - message (optional message to show the user instead; %s is the item name)
#
###############################################################################
#
# For more information, see:
# http://wiki.sk89q.com/wiki/WorldGuard/Blacklist
#
###############################################################################
#
# Some examples follow.
# REMEMBER: If a line has # in front, it will be ignored.
#

# Deny lava buckets
#[lavabucket]
#ignore-perms=my.own.madeup.permission
#ignore-groups=admins,mods
#on-use=deny,tell

# Deny some ore
#[coalore,goldore,ironore]
#ignore-groups=admins,mods
#on-break=notify,deny,log

# Some funky data value tests
#[wood:0;>=2]
#ignore-groups=admins,mods
#on-break=notify,deny,log

# 岩盤設置無効化
[bedrock]
ignore-groups=admin
on-place=deny,log,tell
on-break=deny,log,tell

# オブザーバーブロック設置無効化
[observer]
ignore-groups=admin
on-place=deny,log,tell

# エンドクリスタル設置無効化
[end_crystal]
ignore-groups=admin
on-use=deny,log,tell

# エンド整地、ネザー整地
world_SW_the_end-Blacklist.txt: |
#
# WorldGuard blacklist
#
# The blacklist lets you block actions, blocks, and items from being used.
# You choose a set of "items to affect" and a list of "actions to perform."
#
###############################################################################
#
# Example to block some ore mining and placement:
# [coalore,goldore,ironore]
# on-break=deny,log,kick
# on-place=deny,tell
#
# Events that you can detect:
# - on-break (when a block of this type is about to be broken)
# - on-destroy-with (the item/block held by the user while destroying)
# - on-place (a block is being placed)
# - on-use (an item like flint and steel or a bucket is being used)
# - on-interact (when a block in used (doors, chests, etc.))
# - on-drop (an item is being dropped from the player's inventory)
# - on-acquire (an item enters a player's inventory via some method)
# - on-dispense (a dispenser is about to dispense an item)
#
# Actions (for events):
# - deny (deny completely, used blacklist mode)
# - allow (used in whitelist mode)
# - notify (notify admins with the 'worldguard.notify' permission)
# - log (log to console/file/database)
# - tell (tell a player that that's not allowed)
# - kick (kick player)
# - ban (ban player)
#
# Options:
# - ignore-groups (comma-separated list of groups to not affect)
# - ignore-perms (comma-separated list of permissions to not affect - make up
# your very own permissions!)
# - comment (message for yourself that is printed with 'log' and 'notify')
# - message (optional message to show the user instead; %s is the item name)
#
###############################################################################
#
# For more information, see:
# http://wiki.sk89q.com/wiki/WorldGuard/Blacklist
#
###############################################################################
#
# Some examples follow.
# REMEMBER: If a line has # in front, it will be ignored.
#

# Deny lava buckets
#[lavabucket]
#ignore-perms=my.own.madeup.permission
#ignore-groups=admins,mods
#on-use=deny,tell

# Deny some ore
#[coalore,goldore,ironore]
#ignore-groups=admins,mods
#on-break=notify,deny,log

# Some funky data value tests
#[wood:0;>=2]
#ignore-groups=admins,mods
#on-break=notify,deny,log

# 岩盤設置無効化
[bedrock]
ignore-groups=admin
on-place=deny,log,tell
on-break=deny,log,tell

# ベッド設置無効化
[bed]
ignore-groups=admin
on-use=deny,log,tell

# オブザーバーブロック設置無効化
[observer]
ignore-groups=admin
on-place=deny,log,tell

# エンドクリスタル設置無効化
[end_crystal]
ignore-groups=admin
on-use=deny,log,tell

# メイン
main-config.yml: |
#
# WorldGuard's world configuration file
#
# This is a world configuration file. Anything placed into here will only
# affect this world. If you don't put anything in this file, then the
# settings will be inherited from the main configuration file.
#
# If you see {} below, that means that there are NO entries in this file.
# Remove the {} and add your own entries.
#

regions:
max-region-count-per-player:
default: 5
observer: 5
max-claim-volume: 14745600
# 第1整地
world_SW-config.yml: |
#
# WorldGuard's world configuration file
#
# This is a world configuration file. Anything placed into here will only
# affect this world. If you don't put anything in this file, then the
# settings will be inherited from the main configuration file.
#
# If you see {} below, that means that there are NO entries in this file.
# Remove the {} and add your own entries.
#

fire:
disable-lava-fire-spread: false
disable-all-fire-spread: false
# 第2整地
world_SW_2-config.yml: |
#
# WorldGuard's world configuration file
#
# This is a world configuration file. Anything placed into here will only
# affect this world. If you don't put anything in this file, then the
# settings will be inherited from the main configuration file.
#
# If you see {} below, that means that there are NO entries in this file.
# Remove the {} and add your own entries.
#

regions:
max-region-count-per-player:
default: 2
observer: 2
max-claim-volume: 14803200
fire:
disable-lava-fire-spread: false
disable-all-fire-spread: false
# エンド整地、ネザー整地
world_SW_the_end-config.yml: |
#
# WorldGuard's world configuration file
#
# This is a world configuration file. Anything placed into here will only
# affect this world. If you don't put anything in this file, then the
# settings will be inherited from the main configuration file.
#
# If you see {} below, that means that there are NO entries in this file.
# Remove the {} and add your own entries.
#

{}
Original file line number Diff line number Diff line change
Expand Up @@ -278,10 +278,40 @@ spec:
mountPath: /plugins/ClickTpa/config.yml
subPath: ClickTpa-config.yml

# WorldGuard プラグインの設定ファイル
# WorldGuard プラグイン周りの設定ファイル
- name: common-mcserver-plugin-configs
mountPath: /plugins/WorldGuard/config.yml
subPath: WorldGuard-config.yml
- name: common-worldguard-configs
mountPath: /plugins/WorldGuard/worlds/world/Blacklist.txt
subPath: main-Blacklist.txt
- name: common-worldguard-configs
mountPath: /plugins/WorldGuard/worlds/world/config.yml
subPath: main-config.yml
- name: common-worldguard-configs
mountPath: /plugins/WorldGuard/worlds/world_SW/Blacklist.txt
subPath: world_SW-Blacklist.txt
- name: common-worldguard-configs
mountPath: /plugins/WorldGuard/worlds/world_SW/config.yml
subPath: world_SW-config.yml
- name: common-worldguard-configs
mountPath: /plugins/WorldGuard/worlds/world_SW_2/Blacklist.txt
subPath: world_SW-Blacklist.txt
- name: common-worldguard-configs
mountPath: /plugins/WorldGuard/worlds/world_SW_2/config.yml
subPath: world_SW_2-config.yml
- name: common-worldguard-configs
mountPath: /plugins/WorldGuard/worlds/world_SW_nether/Blacklist.txt
subPath: world_SW_the_end-Blacklist.txt
- name: common-worldguard-configs
mountPath: /plugins/WorldGuard/worlds/world_SW_nether/config.yml
subPath: world_SW_the_end-config.yml
- name: common-worldguard-configs
mountPath: /plugins/WorldGuard/worlds/world_SW_the_end/Blacklist.txt
subPath: world_SW_the_end-Blacklist.txt
- name: common-worldguard-configs
mountPath: /plugins/WorldGuard/worlds/world_SW_the_end/config.yml
subPath: world_SW_the_end-config.yml

# SeichiAssist プラグインの設定ファイル
- name: seichiassist-config
Expand Down