Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
118 commits
Select commit Hold shift + click to select a range
b06367e
1.19.2対応
snowpegeon Jan 2, 2023
6f4f8be
1.20.0対応
snowpegeon Jun 9, 2023
ff037ce
1.20.4対応
snowpegeon Mar 11, 2024
720dcb9
1.20.4対応
snowpegeon Mar 11, 2024
59557e7
Upgrade JUnit3 to JUnit5
teruteru128 Mar 18, 2024
04612d6
Java7からJava17へ移行
teruteru128 Mar 18, 2024
0814885
Merge pull request #3 from snowpegeon/Update1.20.4
snowpegeon Mar 19, 2024
1b376f3
Merge pull request #2 from teruteru128/Update1.20.4-java17
snowpegeon Mar 19, 2024
c975f7a
Merge pull request #1 from teruteru128/Update1.20.4-junit5
snowpegeon Mar 19, 2024
68e977d
1.20.4対応
snowpegeon Apr 2, 2024
84f4a6c
1.20.4対応
snowpegeon Apr 3, 2024
0e13511
ItemStack耐久値非推奨化対応
teruteru128 Apr 3, 2024
13e554f
EnchantInfo#values() 非推奨化対応
teruteru128 Apr 3, 2024
03f627c
ダメージ値のセットに三項演算子を使わない
teruteru128 Apr 3, 2024
21abce7
インデント修正
teruteru128 Apr 3, 2024
2ac2e48
1.20.4対応
snowpegeon Apr 3, 2024
07925ea
1.20.4アップデート
snowpegeon Apr 4, 2024
3141d61
Merge pull request #5 from teruteru128/Update1.20.4-enchantinfo
snowpegeon Apr 4, 2024
126ceba
Merge pull request #4 from teruteru128/Update1.20.4-damage
snowpegeon Apr 4, 2024
d8640cb
isCancelledをuseInteractedBlockに置き換える
teruteru128 Apr 4, 2024
61526e6
PotionInfo.getShortNameでArrays.asListを使うのをやめる
teruteru128 Apr 4, 2024
d11b931
コードをクリーンアップ
cloud5414 Apr 4, 2024
3b9e471
Merge pull request #6 from teruteru128/Update1.20.4-isCancelled
snowpegeon Apr 5, 2024
5f10971
Merge pull request #7 from teruteru128/Update1.20.4-getShortNameRefactor
snowpegeon Apr 5, 2024
7a1622f
1.20.4アップデート
snowpegeon Apr 5, 2024
9c22391
Merge remote-tracking branch 'origin/Update1.20.4' into Update1.20.4
snowpegeon Apr 5, 2024
9a1c9ab
1.20.4アップデート
snowpegeon Apr 5, 2024
b32ef58
コードクリーンアップ
cloud5414 Apr 7, 2024
6cb2715
コードクリーンアップ
cloud5414 Apr 7, 2024
ff66b2f
プルリクエスト #10 のマージ
snowpegeon Apr 7, 2024
4481a6b
1.20.4対応
snowpegeon Apr 12, 2024
ccb8590
1.20.4対応
snowpegeon Apr 12, 2024
b5281b4
StorageSign.java にログを埋めた
fishfillet-krm Apr 13, 2024
43d5cd0
StorageSign.java の不足部分を解決
fishfillet-krm Apr 15, 2024
6192e66
不足していたセクションの記述を追加・修正
cloud5414 Apr 15, 2024
231311d
1.20.4対応
snowpegeon Apr 16, 2024
d89fd4e
1.20.4対応
snowpegeon Apr 16, 2024
d9c5018
プルリクエスト #12 のマージ
snowpegeon Apr 16, 2024
ab176ed
Create LICENSE
wackyls6 Oct 14, 2017
ad6feca
プルリクエスト #13 のマージ
snowpegeon Apr 17, 2024
1246970
1.20.4対応
snowpegeon Apr 17, 2024
0f7ecc9
Merge remote-tracking branch 'origin/Update1.20.4' into Update1.20.4
snowpegeon Apr 17, 2024
0bf4eb1
loggerコード書き直し
fishfillet-krm Apr 17, 2024
1cfc18f
Merge branch 'Update1.20.4' into Update1.20.4
snowpegeon Apr 18, 2024
1e59a77
Merge pull request #11 from fishfillet-krm/Update1.20.4
snowpegeon Apr 18, 2024
bce3516
1.20.4対応
snowpegeon Apr 18, 2024
c4195f6
plugin.ymlにLoggerへの依存関係の明記する
teruteru128 Apr 19, 2024
5fa14ad
plugin.ymlにあるwebsiteの記載を修正する
teruteru128 Apr 19, 2024
22578fe
Jarファイルの命名規則をデフォルトに戻す
teruteru128 Apr 19, 2024
925000d
Merge pull request #14 from teruteru128/Update1.20.4
snowpegeon Apr 19, 2024
1ebbddf
Merge branch 'develop' of https://github.com/cloud5414/StorageSign.gi…
cloud5414 Apr 20, 2024
a8fdfd2
ポーションの短い名前変換実装(途中)
cloud5414 Apr 20, 2024
c93d035
プルリクエスト #16 のマージ
snowpegeon Apr 20, 2024
6be61f2
1.20.4対応
snowpegeon Apr 20, 2024
78b2780
1.20.4対応
snowpegeon Apr 20, 2024
88f4186
再生ポーションが俊敏のポーションとして登録されていた不具合を修正
cloud5414 Apr 20, 2024
5e50aa7
特殊対応に再生ポーションを追加
cloud5414 Apr 21, 2024
634991b
1.20.4対応
snowpegeon Apr 21, 2024
ef4440f
1.20.4対応
snowpegeon Apr 21, 2024
8a74258
特殊対応用名前変換の初期化方法を修正
cloud5414 Apr 21, 2024
345fd8b
プルリクエスト #17 のマージ
snowpegeon Apr 21, 2024
adcebc2
Merge pull request #18 from snowpegeon/Update1.20.4
snowpegeon Apr 21, 2024
9b9d984
1.20.5対応
snowpegeon Apr 25, 2024
7c95685
1.20.5対応
snowpegeon Apr 25, 2024
44d269d
1.20.6対応
snowpegeon Apr 30, 2024
5ab34cb
1.20.6対応
snowpegeon May 6, 2024
55f6225
1.20.6対応
snowpegeon May 6, 2024
c251c8e
1.20.6対応
snowpegeon May 11, 2024
eaade84
NBT_NAME_SHORT_NAMESの初期化をリファクタリング
teruteru128 May 10, 2024
f7a2fa3
PotionInfoの要素を静的インポートに変更
teruteru128 May 10, 2024
6a637d4
Materialの要素を静的インポートに変更
teruteru128 May 11, 2024
91af7c1
プルリクエスト #19 のマージ
snowpegeon May 25, 2024
8db3f3c
1.20.6対応
snowpegeon May 25, 2024
4e0d3e4
Merge branch 'master' into Update_1.20.5
snowpegeon May 25, 2024
07a5e0f
Merge pull request #20 from snowpegeon/Update_1.20.5
snowpegeon May 25, 2024
75d3dad
1.20.6機能改修
snowpegeon May 31, 2024
91a4424
1.20.6機能改修
snowpegeon May 31, 2024
8e0d4d4
1.20.6機能改修
snowpegeon May 31, 2024
f723a9a
1.20.6機能改修
snowpegeon Jun 2, 2024
9a91ec4
1.20.6機能改修
snowpegeon Jun 2, 2024
194727e
1.20.6機能改修
snowpegeon Jun 2, 2024
df8aad7
1.20.6機能改修
snowpegeon Jun 2, 2024
45d1a7f
1.20.6機能改修
snowpegeon Jun 3, 2024
bf81012
1.20.6機能改修
snowpegeon Jun 4, 2024
b05116d
1.20.6機能改修
snowpegeon Jun 4, 2024
8ebc9f0
1.21.0機能改修
snowpegeon Jun 14, 2024
8e0d3fc
1.21.0機能改修
snowpegeon Jul 3, 2024
a92b4bd
Merge pull request #21 from snowpegeon/1.20.5_SystemUpdate
snowpegeon Jul 3, 2024
4150a75
Merge pull request #22 from snowpegeon/Update1.21.0
snowpegeon Jul 3, 2024
23f9132
1.21.0追加機能改修
snowpegeon Jul 5, 2024
a1d82cc
1.21.0追加機能改修
snowpegeon Jul 5, 2024
9626fac
Merge pull request #23 from snowpegeon/Update1.21.0
snowpegeon Jul 5, 2024
a8fa593
1.21.4改修
snowpegeon Dec 4, 2024
100230f
1.21.4改修
snowpegeon Dec 5, 2024
d4f3c04
Merge pull request #24 from snowpegeon/Update1.21.4
snowpegeon Dec 5, 2024
a6344ad
1.21.0改修
snowpegeon Dec 29, 2024
d85b824
1.21.0 Bugfix
cloud5414 Jan 22, 2025
e202db6
不要なコード修正戻し
cloud5414 Jan 22, 2025
571ad16
1.21 Bugfix
cloud5414 Mar 26, 2025
ea0cc46
Merge pull request #26 from cloud5414/Update1.21.4
snowpegeon Apr 1, 2025
2c4c3e4
1.21.5改修
snowpegeon Apr 1, 2025
8a68d2e
1.21.5追加改修
snowpegeon Jun 1, 2025
1f2a4fd
Merge pull request #27 from snowpegeon/Update1.21.5
snowpegeon Jun 1, 2025
b6e4862
1.21.5追加改修
snowpegeon Jun 1, 2025
bcd1f38
Merge pull request #28 from snowpegeon/Update1.21.5
snowpegeon Jun 1, 2025
258c4db
1.21.5追加改修
snowpegeon Jul 11, 2025
4ea73ed
Merge pull request #29 from snowpegeon/Update1.21.5
snowpegeon Jul 11, 2025
8a63ab5
1.21.5追加改修
snowpegeon Jul 15, 2025
b8a2b96
Merge pull request #30 from snowpegeon/Update1.21.5
snowpegeon Jul 18, 2025
20b5ef6
1.21.5バグ改修
snowpegeon Jul 19, 2025
5e9148b
Merge pull request #31 from snowpegeon/Update1.21.5
snowpegeon Jul 19, 2025
9e9da32
1.21.5バグ改修
snowpegeon Jul 30, 2025
39abe43
Merge pull request #32 from snowpegeon/Update1.21.5
snowpegeon Jul 30, 2025
626a9fd
1.21.4バグ改修
snowpegeon Aug 29, 2025
7897495
Merge pull request #33 from snowpegeon/Update1.21.5
snowpegeon Aug 29, 2025
a4481bf
2.0.0Paper対応改修
snowpegeon Dec 9, 2025
b93590d
2.0.0Paper対応改修
snowpegeon Dec 18, 2025
b6c1bd4
Merge pull request #35 from snowpegeon/PaperUpdate
snowpegeon Dec 18, 2025
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
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,5 @@ bin
setblock
pluginsb
pluginss
/target/
/target/
/project.properties
21 changes: 21 additions & 0 deletions LICENSE
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
MIT License

Copyright (c) 2017 wackyls6

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
4 changes: 2 additions & 2 deletions plugin.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
name: StorageSign
main: wacky.storagesign.StorageSignCore
version: 1.3.0
version: ${version}
author: wackyls6
api-version: 1.16
api-version: 1.20
softdepend: [WorldGuard]
website: https://github.com/wackyls6/StorageSign
permissions:
Expand Down
104 changes: 95 additions & 9 deletions pom.xml
Original file line number Diff line number Diff line change
@@ -1,18 +1,21 @@
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>wacky</groupId>
<artifactId>storagesign</artifactId>
<version>1.2.8</version>
<artifactId>StorageSign</artifactId>
<version>2.0.0</version>
<packaging>jar</packaging>
<name>StorageSign</name>
<repositories>
<repository>
<id>spigotmc</id>
<url>https://hub.spigotmc.org/nexus/content/repositories/snapshots</url>
</repository>
<repository>
<id>papermc</id>
<url>https://repo.papermc.io/repository/maven-public/</url>
</repository>
</repositories>
<build>
<finalName>${project.artifactId}</finalName>
<resources>
<resource>
<directory>src/main/resources</directory>
Expand All @@ -25,26 +28,109 @@
<artifactId>maven-compiler-plugin</artifactId>
<version>3.2</version>
<configuration>
<source>1.7</source>
<target>1.7</target>
<source>21</source>
<target>21</target>
<encoding>${project.build.sourceEncoding}</encoding>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-resources-plugin</artifactId>
<version>2.7</version>
<version>3.2.0</version>
<configuration>
<encoding>${project.build.sourceEncoding}</encoding>
</configuration>
<executions>
<execution>
<id>copy-files-on-build</id>
<phase>package</phase>
<goals>
<goal>copy-resources</goal>
</goals>
<configuration>
<!-- プロジェクト直下にproject.propertiesを置いて、RESOURCE-PATH=パス で出力先のプラグインフォルダーを指定 -->
<outputDirectory>${RESOURCE-PATH}</outputDirectory>
<resources>
<resource>
<directory>${basedir}/target</directory>
<include>${project.artifactId}-${project.version}.jar</include>
<filtering>false</filtering>
</resource>
</resources>
</configuration>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>properties-maven-plugin</artifactId>
<version>1.1.0</version>
<executions>
<execution>
<phase>initialize</phase>
<goals>
<goal>read-project-properties</goal>
</goals>
<configuration>
<files>
<file>project.properties</file>
</files>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</build>
<dependencyManagement>
<dependencies>
<dependency>
<groupId>org.junit</groupId>
<artifactId>junit-bom</artifactId>
<version>5.10.2</version>
<type>pom</type>
<scope>import</scope>
</dependency>
</dependencies>
</dependencyManagement>
<dependencies>
<dependency>
<groupId>org.spigotmc</groupId>
<artifactId>spigot-api</artifactId>
<version>1.15-R0.1-SNAPSHOT</version>
<groupId>org.spigotmc</groupId>
<artifactId>spigot-api</artifactId>
<version>1.21.4-R0.1-SNAPSHOT</version>
</dependency>
<dependency>
<groupId>io.papermc.paper</groupId>
<artifactId>paper-api</artifactId>
<version>1.21.4-R0.1-SNAPSHOT</version>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>org.junit.jupiter</groupId>
<artifactId>junit-jupiter</artifactId>
<scope>test</scope>
</dependency>
<!-- https://mvnrepository.com/artifact/org.apache.logging.log4j/log4j-core -->
<dependency>
<groupId>org.apache.logging.log4j</groupId>
<artifactId>log4j-core</artifactId>
<version>2.23.1</version>
</dependency>
<!-- https://mvnrepository.com/artifact/org.apache.logging.log4j/log4j-api -->
<dependency>
<groupId>org.apache.logging.log4j</groupId>
<artifactId>log4j-api</artifactId>
<version>2.23.1</version>
</dependency>
<dependency>
<groupId>com.github.teruteru128</groupId>
<artifactId>logger</artifactId>
<version>1.1.1</version>
</dependency>
<dependency>
<groupId>org.projectlombok</groupId>
<artifactId>lombok</artifactId>
<version>1.18.32</version>
<scope>provided</scope>
</dependency>
</dependencies>
<properties>
Expand Down
153 changes: 153 additions & 0 deletions src/main/java/wacky/storagesign/ConfigLoader.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,153 @@
package wacky.storagesign;

import java.util.Arrays;
import java.util.List;
import org.bukkit.configuration.file.FileConfiguration;
import org.bukkit.plugin.java.JavaPlugin;

/**
* config.ymlを読み取るローダー.
*/
public class ConfigLoader {

/**
* config.ymlを参照するFileConfigurationの実体.
*/
public static FileConfiguration fileConfig;

/**
* ローダーの初期化処理. JavaPlugin.onEnableクラスでのみ呼ばれることを想定.
*/
public static void setup(JavaPlugin plugin) {
fileConfig = plugin.getConfig();
fileConfig.options().copyDefaults(true);
fileConfig.options().setHeader(List.of("StorageSign Configuration"));
plugin.saveConfig();
}

/**
* no-permissionの値を取得する.
*
* @return String
*/
public static String getNoPermission() {
return fileConfig.getString("no-permisson");
}

/**
* log-levelの値を取得する.
*
* @return String
*/
public static String getLogLevel() {
return fileConfig.getString("log-level");
}

/**
* manual-importの値を取得する.
*
* @return boolean
*/
public static boolean getManualImport() {
return fileConfig.getBoolean("manual-import");
}

/**
* manual-exportの値を取得する.
*
* @return boolean
*/
public static boolean getManualExport() {
return fileConfig.getBoolean("manual-export");
}

/**
* auto-importの値を取得する.
*
* @return boolean
*/
public static boolean getAutoImport() {
return fileConfig.getBoolean("auto-import");
}

/**
* auto-exportの値を取得する.
*
* @return boolean
*/
public static boolean getAutoExport() {
return fileConfig.getBoolean("auto-export");
}

/**
* autocollectの値を取得する.
*
* @return boolean
*/
public static boolean getAutoCollect() {
return fileConfig.getBoolean("autocollect");
}

/**
* hardrecipeの値を取得する.
*
* @return boolean
*/
public static boolean getHardRecipe() {
return fileConfig.getBoolean("hardrecipe");
}

/**
* divide-limitの値を取得する.
*
* @return boolean
*/
public static int getDivideLimit() {
return fileConfig.getInt("divide-limit");
}

/**
* sneak-divide-limitの値を取得する.
*
* @return boolean
*/
public static int getSneakDivideLimit() {
return fileConfig.getInt("sneak-divide-limit");
}

/**
* max-stack-sizeの値を取得する.
*
* @return boolean
*/
public static int getMaxStackSize() {
return fileConfig.getInt("max-stack-size");
}

/**
* no-budの値を取得する.
*
* @return boolean
*/
public static boolean getNoBud() {
return fileConfig.getBoolean("no-bud");
}

/**
* falling-block-itemSSの値を取得する.
*
* @return boolean
*/
public static boolean getFallingBlockItemSs() {
return fileConfig.getBoolean("falling-block-itemSS");
}

/**
* banner-debugの値を取得する.
*
* @return boolean
*/
public static boolean getBannerDebug() {
return fileConfig.getBoolean("banner-debug");
}
}
Loading