-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add plugin source code and configuration files
- Loading branch information
Showing
34 changed files
with
3,051 additions
and
0 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 |
---|---|---|
@@ -0,0 +1,4 @@ | ||
<?xml version="1.0" encoding="UTF-8" standalone="no"?> | ||
<profiles version="21"> | ||
<active name="Default"/> | ||
</profiles> |
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 @@ | ||
{ | ||
"java.compile.nullAnalysis.mode": "automatic", | ||
"java.configuration.updateBuildConfiguration": "interactive", | ||
"debug.internalConsoleOptions": "openOnFirstSessionStart" | ||
} |
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,162 @@ | ||
# Gradle | ||
.gradle/ | ||
build/ | ||
!gradle/wrapper/gradle-wrapper.jar | ||
!**/src/main/**/build/ | ||
!**/src/test/**/build/ | ||
|
||
# IntelliJ IDEA | ||
.idea/ | ||
*.iws | ||
*.iml | ||
*.ipr | ||
out/ | ||
!**/src/main/**/out/ | ||
!**/src/test/**/out/ | ||
|
||
# Eclipse | ||
.apt_generated | ||
.classpath | ||
.factorypath | ||
.project | ||
.settings | ||
.springBeans | ||
.sts4-cache | ||
bin/ | ||
!**/src/main/**/bin/ | ||
!**/src/test/**/bin/ | ||
|
||
# NetBeans | ||
/nbproject/private/ | ||
/nbbuild/ | ||
/dist/ | ||
/nbdist/ | ||
/.nb-gradle/ | ||
|
||
# VS Code | ||
.vscode/ | ||
|
||
# Mac OS | ||
.DS_Store | ||
|
||
# Windows | ||
Thumbs.db | ||
ehthumbs.db | ||
Desktop.ini | ||
|
||
# Minecraft Server Test Environment | ||
server/ | ||
run/ | ||
|
||
# Compiled class file | ||
*.class | ||
|
||
# Log file | ||
*.log | ||
|
||
# Package Files | ||
*.jar | ||
*.war | ||
*.nar | ||
*.ear | ||
*.zip | ||
*.tar.gz | ||
*.rar | ||
|
||
# Allow Gradle Wrapper jar | ||
!gradle-wrapper.jar | ||
|
||
# User-specific stuff | ||
.idea/ | ||
|
||
*.iml | ||
*.ipr | ||
*.iws | ||
|
||
# IntelliJ | ||
out/ | ||
# mpeltonen/sbt-idea plugin | ||
.idea_modules/ | ||
|
||
# JIRA plugin | ||
atlassian-ide-plugin.xml | ||
|
||
# BlueJ files | ||
*.ctxt | ||
|
||
# virtual machine crash logs, see http://www.java.com/en/download/help/error_hotspot.xml | ||
hs_err_pid* | ||
|
||
*~ | ||
|
||
# temporary files which can be created if a process still has a handle open of a deleted file | ||
.fuse_hidden* | ||
|
||
# KDE directory preferences | ||
.directory | ||
|
||
# Linux trash folder which might appear on any partition or disk | ||
.Trash-* | ||
|
||
# .nfs files are created when an open file is removed but is still being accessed | ||
.nfs* | ||
|
||
# General | ||
.AppleDouble | ||
.LSOverride | ||
|
||
# Icon must end with two \r | ||
Icon | ||
|
||
# Thumbnails | ||
._* | ||
|
||
# Files that might appear in the root of a volume | ||
.DocumentRevisions-V100 | ||
.fseventsd | ||
.Spotlight-V100 | ||
.TemporaryItems | ||
.Trashes | ||
.VolumeIcon.icns | ||
.com.apple.timemachine.donotpresent | ||
|
||
# Directories potentially created on remote AFP share | ||
.AppleDB | ||
.AppleDesktop | ||
Network Trash Folder | ||
Temporary Items | ||
.apdisk | ||
|
||
# Windows thumbnail cache files | ||
Thumbs.db:encryptable | ||
|
||
# Dump file | ||
*.stackdump | ||
|
||
# Recycle Bin used on file shares | ||
$RECYCLE.BIN/ | ||
|
||
# Windows Installer files | ||
*.cab | ||
*.msi | ||
*.msix | ||
*.msm | ||
*.msp | ||
|
||
# Windows shortcuts | ||
*.lnk | ||
|
||
.gradle | ||
build/ | ||
|
||
# Ignore Gradle GUI config | ||
gradle-app.setting | ||
|
||
# Cache of project | ||
.gradletasknamecache | ||
|
||
**/build/ | ||
|
||
# Common working directory | ||
run/ | ||
runs/ |
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,6 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<project version="4"> | ||
<component name="CompilerConfiguration"> | ||
<bytecodeTargetLevel target="17" /> | ||
</component> | ||
</project> |
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,17 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<project version="4"> | ||
<component name="GradleMigrationSettings" migrationVersion="1" /> | ||
<component name="GradleSettings"> | ||
<option name="linkedExternalProjectsSettings"> | ||
<GradleProjectSettings> | ||
<option name="distributionType" value="DEFAULT_WRAPPED" /> | ||
<option name="externalProjectPath" value="$PROJECT_DIR$" /> | ||
<option name="modules"> | ||
<set> | ||
<option value="$PROJECT_DIR$" /> | ||
</set> | ||
</option> | ||
</GradleProjectSettings> | ||
</option> | ||
</component> | ||
</project> |
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,35 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<project version="4"> | ||
<component name="RemoteRepositoriesConfiguration"> | ||
<remote-repository> | ||
<option name="id" value="central" /> | ||
<option name="name" value="Maven Central repository" /> | ||
<option name="url" value="https://repo1.maven.org/maven2" /> | ||
</remote-repository> | ||
<remote-repository> | ||
<option name="id" value="jboss.community" /> | ||
<option name="name" value="JBoss Community repository" /> | ||
<option name="url" value="https://repository.jboss.org/nexus/content/repositories/public/" /> | ||
</remote-repository> | ||
<remote-repository> | ||
<option name="id" value="MavenRepo" /> | ||
<option name="name" value="MavenRepo" /> | ||
<option name="url" value="https://repo.maven.apache.org/maven2/" /> | ||
</remote-repository> | ||
<remote-repository> | ||
<option name="id" value="spigotmc-repo" /> | ||
<option name="name" value="spigotmc-repo" /> | ||
<option name="url" value="https://hub.spigotmc.org/nexus/content/repositories/snapshots/" /> | ||
</remote-repository> | ||
<remote-repository> | ||
<option name="id" value="papermc" /> | ||
<option name="name" value="papermc" /> | ||
<option name="url" value="https://repo.papermc.io/repository/maven-public/" /> | ||
</remote-repository> | ||
<remote-repository> | ||
<option name="id" value="sonatype" /> | ||
<option name="name" value="sonatype" /> | ||
<option name="url" value="https://oss.sonatype.org/content/groups/public/" /> | ||
</remote-repository> | ||
</component> | ||
</project> |
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 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<project version="4"> | ||
<component name="ExternalStorageConfigurationManager" enabled="true" /> | ||
<component name="ProjectRootManager" version="2" project-jdk-name="azul-17" project-jdk-type="JavaSDK" /> | ||
</project> |
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,13 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<project version="4"> | ||
<component name="AutoImportSettings"> | ||
<option name="autoReloadType" value="SELECTIVE" /> | ||
</component> | ||
<component name="ExternalProjectsData"> | ||
<projectState path="$PROJECT_DIR$"> | ||
<ProjectState /> | ||
</projectState> | ||
</component> | ||
<component name="ProjectId" id="2rwF7TpE9XIiPfQgLiE3dYQhI2b" /> | ||
<component name="SpellCheckerSettings" RuntimeDictionaries="0" Folders="0" CustomDictionaries="0" DefaultDictionary="application-level" UseSingleDictionary="true" transferred="true" /> | ||
</project> |
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,21 @@ | ||
MIT License | ||
|
||
Copyright (c) 2024 baimo | ||
|
||
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. |
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,113 @@ | ||
# Tweakin - Minecraft Server Enhancement Plugin | ||
|
||
 | ||
|
||
English | [็ฎไฝไธญๆ](README.md) | ||
|
||
## ๐ Introduction | ||
|
||
Tweakin is a multi-functional enhancement plugin designed for Minecraft servers. It provides various useful game mechanism improvements to make the server gaming experience more convenient and fun. | ||
|
||
## โจ Features | ||
|
||
- ๐ฑ Auto Planting System | ||
- Automatically plants dropped seeds and crops | ||
- Supports all plant types | ||
- Configurable planting delay | ||
- Particle effect feedback | ||
- ๐ช Double Door Sync | ||
- Automatically syncs adjacent door states | ||
- Supports all wooden door types | ||
- ๐ต Cactus Protection | ||
- Prevents items from being destroyed by cacti | ||
- Items bounce away instead of being destroyed | ||
- ๐ Join/Quit Messages | ||
- Custom welcome messages | ||
- Display player online time | ||
- Beautiful quit notifications | ||
- ๐ Death Hunger Retention | ||
- Retains hunger value after death | ||
- Special handling for starvation deaths | ||
- ๐จ Silk Touch Enhancement | ||
- Configurable additional blocks for silk touch | ||
- Supports spawner collection | ||
- ๐ฅ Dragon Egg Drops | ||
- Dragon egg drops on every dragon kill | ||
- ๐ฏ๏ธ Dangerous Block Damage | ||
- Take damage when standing on candles | ||
- Take damage when standing on stonecutters | ||
|
||
## ๐ฅ Installation | ||
|
||
1. Download the latest version of `Tweakin.jar` | ||
2. Place the file in your server's `plugins` folder | ||
3. Restart the server | ||
4. Enjoy the enhanced features! | ||
|
||
## โ๏ธ Configuration | ||
|
||
The plugin will automatically create configuration files on first run: | ||
``` | ||
๐ plugins/Tweakin/ | ||
โโโ ๐ config.yml - Main configuration file | ||
``` | ||
|
||
### Configuration Details | ||
|
||
`config.yml` contains the following main settings: | ||
|
||
```yaml | ||
# Auto Plant Settings | ||
auto-plant: | ||
enabled: true | ||
plant-delay: 15 | ||
particle-effect: true | ||
|
||
# Double Door Settings | ||
double-door: | ||
enabled: true | ||
|
||
# Cactus Protection Settings | ||
cactus-protection: | ||
enabled: true | ||
|
||
# Join Message Settings | ||
join-message: | ||
enabled: true | ||
messages: | ||
- "&bWelcome back, &f%player_name%" | ||
- "&7โถ Playtime: &f%statistic_time_played%" | ||
|
||
# Death Hunger Settings | ||
hunger: | ||
enabled: true | ||
starvation-respawn-food: 4 | ||
|
||
# Silk Touch Plus Settings | ||
silk-touch-plus: | ||
enabled: true | ||
blocks: | ||
"minecraft:spawner": true | ||
``` | ||
## ๐ Commands | ||
| Command | Permission | Description | | ||
|---------|------------|-------------| | ||
| `/tweakin reload` | `tweakin.reload` | Reload plugin configuration | | ||
|
||
## ๐ง Requirements | ||
|
||
- โ Java 17+ | ||
- ๐ฎ Minecraft 1.20.x | ||
- ๐ ๏ธ Spigot/Paper Server | ||
|
||
## ๐ฌ Support | ||
|
||
Need help? Join our community! | ||
|
||
[](https://jq.qq.com/?_wv=1027&k=528651839) | ||
|
||
## ๐ License | ||
|
||
This project is licensed under the [MIT](LICENSE) License. |
Oops, something went wrong.