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

Version 1.0 #5

Merged
merged 15 commits into from
Apr 30, 2024
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
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 BT Pluginz

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.
50 changes: 50 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
# BT's CombatLogger
![Static Badge](https://img.shields.io/badge/MC-1.13-green)
![Static Badge](https://img.shields.io/badge/MC-1.14-green)
![Static Badge](https://img.shields.io/badge/MC-1.15-green)
![Static Badge](https://img.shields.io/badge/MC-1.16-green)
![Static Badge](https://img.shields.io/badge/MC-1.17-green)
![Static Badge](https://img.shields.io/badge/MC-1.18-green)
![Static Badge](https://img.shields.io/badge/MC-1.19-green)
![Static Badge](https://img.shields.io/badge/MC-1.20-green)
![Modrinth Downloads](https://img.shields.io/modrinth/dt/qiyG0tnT?logo=Modrinth&style=flat-square)


![forthebadge](https://forthebadge.com/images/badges/works-on-my-machine.svg)

<p align="center">
<a href="https://discord.pluginz.dev">
<img src="https://i.imgur.com/JgDt1Fl.png" width="300">
</a>
<br>
<i>Please join the Discord if you have questions!</i>
</p>
<br>

This Minecraft Plugin punishes people when they leave the Server while they are in Combat.
## Features
- Start the combat Timer for a specific Player with `/cl start <player>` (requires Permission: `combatlogger.start`, `default: op`)
- Stop the combat Timer for a specific Player with `/cl stop <player>` (requires Permission: `combatlogger.stop`, `default: op`)
- List all Players that are currently in Combat with `/cl list` (requires Permission: `combatlogger.list`, `default: op`)
- Get and set the Combat time with `/cl settime` to get the current time use `/cl settime <seconds>` to set the new time (requires Permission: `combatlogger.settimer`, `default: op`)
- Reload the Config and Allys with `/cl reload` (requires Permission: `combatlogger.reload`, `default: op`)
- Ally with another Player, so when you hit each-other the Timer won't start `/cl ally` (requires Permission: `combatlogger.ally`, `default: player`)
- `/cl ally add <player>` to add someone as an ally
- `/cl ally remove <player>` to remove an ally
- Help command `/cl help` displays all the commands a player has permission to use
## Permission
- `combatlogger.start`: Allows players to start combat for a specific player (`default: op`)
- `combatlogger.stop`: Allows players to stop combat for a specific player (`default: op`)
- `combatlogger.list`: Allows players to list all players currently in combat (`default: op`)
- `combatlogger.settimer`: Allows players to set the combat timer (`default: op`)
- `combatlogger.reload`: Allows Players to reload the config and allys (`default: op`)
- `combatlogger.ally`: Allows players to ally with other players (`default: player`)
## Installation
To install the plugin, simply download the latest release file and place it in your server's plugins folder. Then, restart your server.
## Support
For Support open an issue or join the [Discord](https://discord.pluginz.dev)
## License

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

[![forthebadge](https://forthebadge.com/images/badges/powered-by-black-magic.svg)](https://forthebadge.com)
39 changes: 33 additions & 6 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,12 @@
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>de.tubyoub</groupId>
<artifactId>CombatLogger</artifactId>
<version>1.0-SNAPSHOT</version>
<groupId>dev.pluginz</groupId>
<artifactId>combatlogger</artifactId>
<version>1.0</version>
<packaging>jar</packaging>

<name>CombatLogging</name>
<name>BT'S CombatLogger</name>

<properties>
<java.version>1.8</java.version>
Expand All @@ -31,6 +31,19 @@
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-shade-plugin</artifactId>
<version>3.2.4</version>
<configuration>
<filters>
<filter>
<artifact>*:*</artifact>
<excludes>
<exclude>META-INF/*.MF</exclude>
</excludes>
</filter>
</filters>
<createDependencyReducedPom>false</createDependencyReducedPom>
<outputFile>D:\papermc\plugins\TubsStatusPlugin-v${project.version}.jar</outputFile>
<outputFile>target\BTsCombatLogger-v${project.version}.jar</outputFile>
</configuration>
<executions>
<execution>
<phase>package</phase>
Expand All @@ -50,6 +63,10 @@
</build>

<repositories>
<repository>
<id>spigotmc-repo</id>
<url>https://hub.spigotmc.org/nexus/content/repositories/snapshots/</url>
</repository>
<repository>
<id>papermc-repo</id>
<url>https://repo.papermc.io/repository/maven-public/</url>
Expand All @@ -62,10 +79,20 @@

<dependencies>
<dependency>
<groupId>com.destroystokyo.paper</groupId>
<artifactId>paper-api</artifactId>
<groupId>org.spigotmc</groupId>
<artifactId>spigot-api</artifactId>
<version>1.13-R0.1-SNAPSHOT</version>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>dev.dejvokep</groupId>
<artifactId>boosted-yaml</artifactId>
<version>1.3.1</version>
</dependency>
<dependency>
<groupId>com.fasterxml.jackson.core</groupId>
<artifactId>jackson-databind</artifactId>
<version>2.16.0</version>
</dependency>
</dependencies>
</project>
27 changes: 0 additions & 27 deletions src/main/java/de/tubyoub/combatlogger/CombatLoggerPlugin.java

This file was deleted.

161 changes: 0 additions & 161 deletions src/main/java/de/tubyoub/combatlogger/CombatManager.java

This file was deleted.

Loading
Loading