-
Notifications
You must be signed in to change notification settings - Fork 36
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1971 from GiganticMinecraft/develop
バージョン 77 リリース
- Loading branch information
Showing
110 changed files
with
3,412 additions
and
1,601 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -9,4 +9,3 @@ project | |
|
||
target* | ||
!target/build | ||
localDependencies/ajd4jp-8.0.2.2021.jar |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,77 @@ | ||
# RedisBungee configuration file. | ||
|
||
# Cluster Mode | ||
# enabling this option will enable cluster mode. | ||
cluster-mode-enabled: false | ||
|
||
# FORMAT: | ||
# redis-cluster-servers: | ||
# - host: 127.0.0.1 | ||
# port: 2020 | ||
# - host: 127.0.0.1 | ||
# port: 2021 | ||
# - host: 127.0.0.1 | ||
# port: 2021 | ||
|
||
# you can set single server and Jedis will automatically discover cluster nodes, | ||
# but might fail if this single redis node is down when Proxy startup, its recommended put the all the nodes | ||
redis-cluster-servers: | ||
- host: 127.0.0.1 | ||
port: 6379 | ||
|
||
# Get Redis from http://redis.io/ | ||
# The Redis server you use. | ||
# these settings are ignored when cluster mode is enabled. | ||
redis-server: redis | ||
redis-port: 6379 | ||
|
||
# OPTIONAL but recommended: If your Redis server uses AUTH, set the password required. | ||
redis-password: "" | ||
# Maximum connections that will be maintained to the Redis server. | ||
# The default is 10. This setting should be left as-is unless you have some wildly | ||
# inefficient plugins or a lot of players. | ||
max-redis-connections: 10 | ||
|
||
# since redis can support ssl by version 6 you can use ssl / tls in redis bungee too! | ||
# but there is more configuration needed to work see https://github.com/ProxioDev/RedisBungee/issues/18 | ||
# Keep note that SSL/TLS connections will decrease redis performance so use it when needed. | ||
useSSL: false | ||
|
||
# An identifier for this BungeeCord / Velocity instance. Will randomly generate if leaving it blank. | ||
proxy-id: "" | ||
|
||
# since version 0.8.0 Internally now uses JedisPooled instead of Jedis, JedisPool. | ||
# which will break compatibility with old plugins that uses RedisBungee JedisPool | ||
# so to mitigate this issue, we will instruct RedisBungee to init an JedisPool for compatibility reasons. | ||
# enabled by default | ||
# ignored when cluster mode is enabled | ||
enable-jedis-pool-compatibility: true | ||
# max connections for the compatibility pool | ||
compatibility-max-connections: 3 | ||
|
||
# Register redis bungee legacy commands | ||
# if this disabled override-bungee-commands will be ignored | ||
register-legacy-commands: false | ||
|
||
# Whether or not RedisBungee should install its version of regular BungeeCord commands. | ||
# Often, the RedisBungee commands are desired, but in some cases someone may wish to | ||
# override the commands using another plugin. | ||
# | ||
# If you are just denying access to the commands, RedisBungee uses the default BungeeCord | ||
# permissions - just deny them and access will be denied. | ||
# | ||
# Please note that with build 787+, most commands overridden by RedisBungee were moved to | ||
# modules, and these must be disabled or overridden yourself. | ||
override-bungee-commands: false | ||
|
||
# A list of IP addresses for which RedisBungee will not modify the response for, useful for automatic | ||
# restart scripts. | ||
exempt-ip-addresses: [] | ||
|
||
# restore old login when online behavior before 0.9.0 update | ||
# uncomment to enable it | ||
|
||
# disable-kick-when-online: true | ||
|
||
# Config version DO NOT CHANGE!!!! | ||
config-version: 1 |
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
addSbtPlugin("com.thesamet" % "sbt-protoc" % "0.99.28") | ||
addSbtPlugin("com.thesamet" % "sbt-protoc" % "1.0.6") | ||
|
||
libraryDependencies += "com.thesamet.scalapb" %% "compilerplugin" % "0.10.1" | ||
libraryDependencies += "com.thesamet.scalapb" %% "compilerplugin" % "0.11.11" |
5 changes: 5 additions & 0 deletions
5
src/main/resources/db/migration/V1.16.0__Change_new_fairy_time_type.sql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
USE seichiassist; | ||
|
||
-- 型を変えるので一度内容をリセットする | ||
UPDATE playerdata SET newVotingFairyTime = NULL; | ||
ALTER TABLE playerdata MODIFY newVotingFairyTime DATETIME; |
3 changes: 3 additions & 0 deletions
3
src/main/resources/db/migration/V1.16.1__Add_fairy_columns.sql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
USE seichiassist; | ||
|
||
ALTER TABLE playerdata ADD is_fairy_speech_play_sound BOOLEAN DEFAULT TRUE AFTER toggleVotingFairy; |
14 changes: 14 additions & 0 deletions
14
src/main/resources/db/migration/V1.16.2__Remove_duplicate_playerdata.sql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
-- 本来重複しないはずのuuidにunique制約をかけていなかった & | ||
-- それによって何故か全く同じデータをもつデータがplayerdataテーブルに存在しているのでそれを取り除く | ||
|
||
USE seichiassist; | ||
|
||
CREATE TEMPORARY TABLE playerdata_tmp AS SELECT DISTINCT * FROM playerdata; | ||
TRUNCATE TABLE playerdata; | ||
|
||
INSERT INTO playerdata SELECT * FROM playerdata_tmp; | ||
DROP TABLE playerdata_tmp; | ||
|
||
-- ゆるせないのでplayerdataテーブルのuuidカラムをprimary keyとして設定する | ||
|
||
ALTER TABLE playerdata ADD PRIMARY KEY(uuid) |
38 changes: 38 additions & 0 deletions
38
src/main/resources/db/migration/V1.16.3__Move_vote_column.sql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
USE seichiassist; | ||
|
||
CREATE TABLE IF NOT EXISTS vote( | ||
uuid CHAR(36) NOT NULL PRIMARY KEY, | ||
vote_number INT NOT NULL, | ||
chain_vote_number INT NOT NULL, | ||
effect_point INT NOT NULL, | ||
given_effect_point INT NOT NULL, | ||
last_vote DATETIME | ||
); | ||
|
||
INSERT INTO | ||
vote( | ||
uuid, | ||
vote_number, | ||
chain_vote_number, | ||
effect_point, | ||
given_effect_point, | ||
last_vote | ||
) | ||
SELECT | ||
uuid, | ||
p_vote, | ||
chainvote, | ||
effectpoint, | ||
p_givenvote, | ||
CASE | ||
WHEN lastvote REGEXP '[0-9]{4}/[0-9]{2}/[0-9]{2}' THEN CONVERT(lastvote, DATE) | ||
END | ||
FROM | ||
playerdata; | ||
|
||
ALTER TABLE | ||
playerdata DROP IF EXISTS p_vote, | ||
DROP IF EXISTS chainvote, | ||
DROP IF EXISTS effectpoint, | ||
DROP IF EXISTS p_givenvote, | ||
DROP IF EXISTS lastvote; |
44 changes: 44 additions & 0 deletions
44
src/main/resources/db/migration/V1.16.4__Move_vote_fairy_column.sql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
USE seichiassist; | ||
|
||
CREATE TABLE vote_fairy( | ||
uuid CHAR(36) NOT NULL PRIMARY KEY, | ||
apple_open_state INT NOT NULL DEFAULT 1, | ||
fairy_summon_cost INT NOT NULL DEFAULT 1, | ||
is_fairy_using BOOLEAN NOT NULL DEFAULT false, | ||
fairy_recovery_mana_value INT NOT NULL DEFAULT 0, | ||
fairy_end_time DATETIME DEFAULT NULL, | ||
given_apple_amount BIGINT NOT NULL DEFAULT 0, | ||
is_play_fairy_speech_sound BOOLEAN NOT NULL DEFAULT true | ||
); | ||
|
||
INSERT INTO | ||
vote_fairy( | ||
uuid, | ||
apple_open_state, | ||
fairy_summon_cost, | ||
is_fairy_using, | ||
fairy_recovery_mana_value, | ||
fairy_end_time, | ||
given_apple_amount, | ||
is_play_fairy_speech_sound | ||
) | ||
SELECT | ||
uuid, | ||
toggleGiveApple, | ||
toggleVotingFairy, | ||
canVotingFairyUse, | ||
VotingFairyRecoveryValue, | ||
newVotingFairyTime, | ||
p_apple, | ||
is_fairy_speech_play_sound | ||
FROM | ||
playerdata; | ||
|
||
ALTER TABLE playerdata | ||
DROP IF EXISTS toggleGiveApple, | ||
DROP IF EXISTS toggleVotingFairy, | ||
DROP IF EXISTS canVotingFairyUse, | ||
DROP IF EXISTS VotingFairyRecoveryValue, | ||
DROP IF EXISTS newVotingFairyTime, | ||
DROP IF EXISTS p_apple, | ||
DROP IF EXISTS is_fairy_speech_play_sound |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.