started tracking down comand execution error
This commit is contained in:
parent
3b624c51c0
commit
04f3b81cdc
3
.gitignore
vendored
3
.gitignore
vendored
@ -1,4 +1 @@
|
|||||||
.idea
|
.idea
|
||||||
out
|
|
||||||
target
|
|
||||||
Tridentwar.iml
|
|
15
README.md
15
README.md
@ -1,15 +0,0 @@
|
|||||||
# tridentwar
|
|
||||||
Tridentwar is a minigame inspired by friends.
|
|
||||||
## History
|
|
||||||
The development of this plugin originated on a server, a friend of mine hosted, where we played around with all sorts of items.
|
|
||||||
I later took the idea and started designing a plugin all around it.
|
|
||||||
|
|
||||||
## Supported version
|
|
||||||
I am using the most recent stable Minecraft spigot versions and cannot guarantee downwards compatibility.
|
|
||||||
|
|
||||||
## License
|
|
||||||
You are free to use this plugin on your server but, you have to mention me as the author and have to keep credit notices I placed inside the plugin.
|
|
||||||
|
|
||||||
## Current Roadmap
|
|
||||||
Because this plugin currently is in its early development phase I will update this to more interesting features down the road
|
|
||||||
my main goal, for now, is to get a stable plugin to host on servers without issues.
|
|
BIN
out/artifacts/Tridentwar/Tridentwar.jar
Normal file
BIN
out/artifacts/Tridentwar/Tridentwar.jar
Normal file
Binary file not shown.
@ -4,3 +4,5 @@ version: 0.1
|
|||||||
api-version: 1.13
|
api-version: 1.13
|
||||||
commands:
|
commands:
|
||||||
tw:
|
tw:
|
||||||
|
description: "controlls plugin"
|
||||||
|
usage: /jobs <list, info, stats, join, leave>
|
20
pom.xml
20
pom.xml
@ -5,25 +5,14 @@
|
|||||||
<modelVersion>4.0.0</modelVersion>
|
<modelVersion>4.0.0</modelVersion>
|
||||||
|
|
||||||
<groupId>de.steev</groupId>
|
<groupId>de.steev</groupId>
|
||||||
<artifactId>tridentwar</artifactId>
|
<artifactId>TridentWar</artifactId>
|
||||||
<version>1.0</version>
|
<version>1.0-SNAPSHOT</version>
|
||||||
<build>
|
|
||||||
<plugins>
|
|
||||||
<plugin>
|
|
||||||
<groupId>org.apache.maven.plugins</groupId>
|
|
||||||
<artifactId>maven-compiler-plugin</artifactId>
|
|
||||||
<configuration>
|
|
||||||
<source>16</source>
|
|
||||||
<target>16</target>
|
|
||||||
</configuration>
|
|
||||||
</plugin>
|
|
||||||
</plugins>
|
|
||||||
</build>
|
|
||||||
|
|
||||||
<properties>
|
<properties>
|
||||||
<maven.compiler.source>17</maven.compiler.source>
|
<maven.compiler.source>17</maven.compiler.source>
|
||||||
<maven.compiler.target>17</maven.compiler.target>
|
<maven.compiler.target>17</maven.compiler.target>
|
||||||
</properties>
|
</properties>
|
||||||
|
|
||||||
<repositories>
|
<repositories>
|
||||||
<!-- This adds the Spigot Maven repository to the build -->
|
<!-- This adds the Spigot Maven repository to the build -->
|
||||||
<repository>
|
<repository>
|
||||||
@ -37,8 +26,9 @@
|
|||||||
<dependency>
|
<dependency>
|
||||||
<groupId>org.spigotmc</groupId>
|
<groupId>org.spigotmc</groupId>
|
||||||
<artifactId>spigot-api</artifactId>
|
<artifactId>spigot-api</artifactId>
|
||||||
<version>1.17.1-R0.1-SNAPSHOT</version>
|
<version>1.18-R0.1-SNAPSHOT</version>
|
||||||
<scope>provided</scope>
|
<scope>provided</scope>
|
||||||
</dependency>
|
</dependency>
|
||||||
</dependencies>
|
</dependencies>
|
||||||
|
|
||||||
</project>
|
</project>
|
@ -1,6 +1,7 @@
|
|||||||
package de.steev.Tridentwar.listeners;
|
package de.steev.Tridentwar.listeners;
|
||||||
|
|
||||||
import de.steev.Tridentwar.manager.GameManager;
|
import de.steev.Tridentwar.manager.GameManager;
|
||||||
|
import org.bukkit.GameMode;
|
||||||
import org.bukkit.event.EventHandler;
|
import org.bukkit.event.EventHandler;
|
||||||
import org.bukkit.event.Listener;
|
import org.bukkit.event.Listener;
|
||||||
import org.bukkit.event.entity.PlayerDeathEvent;
|
import org.bukkit.event.entity.PlayerDeathEvent;
|
||||||
@ -8,12 +9,12 @@ import org.bukkit.event.entity.PlayerDeathEvent;
|
|||||||
public class PlayerDeathListener implements Listener {
|
public class PlayerDeathListener implements Listener {
|
||||||
private GameManager gameManager;
|
private GameManager gameManager;
|
||||||
|
|
||||||
public PlayerDeathListener(GameManager gameManager) {
|
public PlayerDeathListener(GameManager gameManager) { this.gameManager = gameManager; }
|
||||||
this.gameManager = gameManager;
|
|
||||||
}
|
|
||||||
|
|
||||||
@EventHandler
|
@EventHandler
|
||||||
public void onPlayerDeath(PlayerDeathEvent event) {
|
public void onPlayerDeath(PlayerDeathEvent event) {
|
||||||
this.gameManager.getPlayerManager().playerDeath();
|
this.gameManager.getPlayerManager().playerDeath();
|
||||||
|
event.getEntity().setGameMode(GameMode.SPECTATOR);
|
||||||
|
event.getEntity().sendMessage("Du bist gestorben");
|
||||||
}
|
}
|
||||||
}
|
}
|
BIN
target/classes/de/steev/Tridentwar/Tridentwar.class
Normal file
BIN
target/classes/de/steev/Tridentwar/Tridentwar.class
Normal file
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
BIN
target/classes/de/steev/Tridentwar/manager/GameManager$1.class
Normal file
BIN
target/classes/de/steev/Tridentwar/manager/GameManager$1.class
Normal file
Binary file not shown.
BIN
target/classes/de/steev/Tridentwar/manager/GameManager.class
Normal file
BIN
target/classes/de/steev/Tridentwar/manager/GameManager.class
Normal file
Binary file not shown.
BIN
target/classes/de/steev/Tridentwar/manager/GameState.class
Normal file
BIN
target/classes/de/steev/Tridentwar/manager/GameState.class
Normal file
Binary file not shown.
BIN
target/classes/de/steev/Tridentwar/manager/PlayerManager.class
Normal file
BIN
target/classes/de/steev/Tridentwar/manager/PlayerManager.class
Normal file
Binary file not shown.
BIN
target/classes/de/steev/Tridentwar/manager/TridentManager.class
Normal file
BIN
target/classes/de/steev/Tridentwar/manager/TridentManager.class
Normal file
Binary file not shown.
Binary file not shown.
BIN
target/classes/de/steev/Tridentwar/tasks/TridentResetTask.class
Normal file
BIN
target/classes/de/steev/Tridentwar/tasks/TridentResetTask.class
Normal file
Binary file not shown.
Loading…
x
Reference in New Issue
Block a user