started tracking down comand execution error
This commit is contained in:
+1
-4
@@ -1,4 +1 @@
|
|||||||
.idea
|
.idea
|
||||||
out
|
|
||||||
target
|
|
||||||
Tridentwar.iml
|
|
||||||
@@ -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.
|
|
||||||
Binary file not shown.
+3
-1
@@ -3,4 +3,6 @@ main: de.steev.Tridentwar.Tridentwar
|
|||||||
version: 0.1
|
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>
|
||||||
@@ -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");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -42,7 +42,7 @@ public class GameManager {
|
|||||||
Bukkit.broadcastMessage("Stopping Game");
|
Bukkit.broadcastMessage("Stopping Game");
|
||||||
break;
|
break;
|
||||||
case ABORTING:
|
case ABORTING:
|
||||||
Bukkit.broadcastMessage("No Player Alive game aborts");
|
Bukkit.broadcastMessage("No Player Alive game aborts");
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Reference in New Issue
Block a user