Skip to content

Commit

Permalink
Add plugin source code and configuration files
Browse files Browse the repository at this point in the history
  • Loading branch information
Lythrilla committed Feb 8, 2025
1 parent d9321f9 commit ad9478c
Show file tree
Hide file tree
Showing 34 changed files with 3,051 additions and 0 deletions.
4 changes: 4 additions & 0 deletions .arts/formatter.xml
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>
5 changes: 5 additions & 0 deletions .arts/settings.json
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"
}
162 changes: 162 additions & 0 deletions .gitignore
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/
6 changes: 6 additions & 0 deletions .jlsp/compiler.xml
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>
17 changes: 17 additions & 0 deletions .jlsp/gradle.xml
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>
35 changes: 35 additions & 0 deletions .jlsp/jarRepositories.xml
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>
5 changes: 5 additions & 0 deletions .jlsp/misc.xml
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>
13 changes: 13 additions & 0 deletions .jlsp/workspace.xml
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>
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) 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.
113 changes: 113 additions & 0 deletions README_EN.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,113 @@
# Tweakin - Minecraft Server Enhancement Plugin

![License](https://img.shields.io/badge/License-MIT-green)

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!

[![Join QQ Group](https://img.shields.io/badge/QQ_Group-528651839-blue)](https://jq.qq.com/?_wv=1027&k=528651839)

## ๐Ÿ“œ License

This project is licensed under the [MIT](LICENSE) License.
Loading

0 comments on commit ad9478c

Please sign in to comment.