Signed-off-by: Lixfel <agga-games@gmx.de>
Dieser Commit ist enthalten in:
Ursprung
aca85c6290
Commit
f228f6225f
23
BUILDING.md
23
BUILDING.md
@ -1,23 +0,0 @@
|
||||
# Building
|
||||
|
||||
Building SteamWar.de software requires certain libraries,
|
||||
which cannot be provided over traditional ways (like maven)
|
||||
due to copyright issues with compiled Spigot packages.
|
||||
For building these libraries have to be named in a lib
|
||||
directory named like in the following list.
|
||||
A subset of the following libraries is required to build this software
|
||||
(this is the list for being able to build all SteamWar.de software):
|
||||
|
||||
- BungeeCord.jar https://ci.md-5.net/job/BungeeCord/
|
||||
- BungeeTabListPlus.jar https://www.spigotmc.org/resources/bungeetablistplus.313/
|
||||
- PersistentBungeeCore.jar https://steamwar.de/devlabs/SteamWar/PersistentBungeeCore
|
||||
- ProtocolLib.jar https://www.spigotmc.org/resources/protocollib.1997/
|
||||
- Spigot-1.8.jar https://hub.spigotmc.org/jenkins/job/BuildTools/ (1.8.9)
|
||||
- Spigot-1.9.jar https://hub.spigotmc.org/jenkins/job/BuildTools/ (1.9.4)
|
||||
- Spigot-1.10.jar https://hub.spigotmc.org/jenkins/job/BuildTools/ (1.10.2)
|
||||
- Spigot-1.12.jar https://hub.spigotmc.org/jenkins/job/BuildTools/ (1.12.2)
|
||||
- Spigot-1.14.jar https://hub.spigotmc.org/jenkins/job/BuildTools/ (1.14.4)
|
||||
- Spigot-1.15.jar https://hub.spigotmc.org/jenkins/job/BuildTools/ (1.15.2)
|
||||
- SpigotCore.jar https://steamwar.de/devlabs/SteamWar/SpigotCore
|
||||
- WorldEdit-1.12.jar https://dev.bukkit.org/projects/worldedit/files (6.1.9)
|
||||
- WorldEdit-1.15.jar https://dev.bukkit.org/projects/worldedit/files (newest)
|
@ -19,6 +19,8 @@
|
||||
|
||||
package de.steamwar.fightsystem;
|
||||
|
||||
import com.comphenix.tinyprotocol.TinyProtocol;
|
||||
import de.steamwar.core.Core;
|
||||
import de.steamwar.fightsystem.commands.*;
|
||||
import de.steamwar.fightsystem.countdown.*;
|
||||
import de.steamwar.fightsystem.event.HellsBells;
|
||||
@ -56,6 +58,11 @@ public class FightSystem extends JavaPlugin {
|
||||
|
||||
@Override
|
||||
public void onEnable() {
|
||||
if(Core.getInstance() == null) {
|
||||
Core.setInstance(this);
|
||||
TinyProtocol.init();
|
||||
}
|
||||
|
||||
message = new Message("de.steamwar.fightsystem.FightSystem", FightSystem.class.getClassLoader());
|
||||
|
||||
new EntityDamage();
|
||||
|
@ -19,7 +19,9 @@
|
||||
|
||||
package de.steamwar.fightsystem.commands;
|
||||
|
||||
import de.steamwar.core.Core;
|
||||
import de.steamwar.fightsystem.ArenaMode;
|
||||
import de.steamwar.fightsystem.FightSystem;
|
||||
import de.steamwar.fightsystem.fight.Kit;
|
||||
import de.steamwar.fightsystem.states.FightState;
|
||||
import de.steamwar.fightsystem.states.StateDependentCommand;
|
||||
@ -42,8 +44,10 @@ public class AkCommand implements CommandExecutor {
|
||||
return false;
|
||||
}
|
||||
Player player = (Player) sender;
|
||||
if(!player.isOp())
|
||||
return false;
|
||||
|
||||
if(SteamwarUser.get(player.getUniqueId()).getUserGroup() != UserGroup.Developer){
|
||||
if(SteamwarUser.get(player.getUniqueId()).getUserGroup() != UserGroup.Developer && Core.getInstance() != FightSystem.getPlugin()){
|
||||
return false;
|
||||
}
|
||||
|
||||
|
33
README.md
33
README.md
@ -1,2 +1,35 @@
|
||||
# FightSystem
|
||||
|
||||
## Server setup
|
||||
|
||||
**Currently FightSystem takes more or less total control over the server, so using a server running FightSystem as server
|
||||
for different purposes is currently not possible.**
|
||||
|
||||
1. Install a WorldEdit plugin and the FightSystem plugin on the server
|
||||
2. Start the server once (will instantly shutdown due to missing FightSystem configuration)
|
||||
3. Configure FightSystem by modifying plugins/FightSystem/config.yml
|
||||
4. Create a config.yml in the world folder and configure the file as described at the end of plugins/FightSystem/config.yml
|
||||
5. Start and join the server (as op), create a basic kit, save it with `/ak [kitname]`
|
||||
6. Configure the kit as default kit
|
||||
7. Restart the server and have fun!
|
||||
|
||||
To start a server in the testarena mode start the server with the flag `-DfightID=-1` prior to `-jar`.
|
||||
|
||||
## Compiling
|
||||
|
||||
Building SteamWar.de software requires certain libraries,
|
||||
which cannot be provided over traditional ways (like maven)
|
||||
due to copyright issues with compiled Spigot packages.
|
||||
The following libraries are required to be in the `lib`
|
||||
directory exactly named like in the list:
|
||||
|
||||
- `Spigot-1.8.jar` https://hub.spigotmc.org/jenkins/job/BuildTools/ (1.8.9)
|
||||
- `Spigot-1.9.jar` https://hub.spigotmc.org/jenkins/job/BuildTools/ (1.9.4)
|
||||
- `Spigot-1.10.jar` https://hub.spigotmc.org/jenkins/job/BuildTools/ (1.10.2)
|
||||
- `Spigot-1.12.jar` https://hub.spigotmc.org/jenkins/job/BuildTools/ (1.12.2)
|
||||
- `Spigot-1.14.jar` https://hub.spigotmc.org/jenkins/job/BuildTools/ (1.14.4)
|
||||
- `Spigot-1.15.jar` https://hub.spigotmc.org/jenkins/job/BuildTools/ (1.15.2)
|
||||
- `Spigot-1.18.jar` https://hub.spigotmc.org/jenkins/job/BuildTools/ (1.18.1, Use the jar from Spigot/Spigot-Server/target)
|
||||
- `SpigotCore.jar` https://steamwar.de/devlabs/SteamWar/SpigotCore
|
||||
- `WorldEdit-1.12.jar` https://dev.bukkit.org/projects/worldedit/files (6.1.9)
|
||||
- `WorldEdit-1.15.jar` https://dev.bukkit.org/projects/worldedit/files (newest)
|
||||
|
In neuem Issue referenzieren
Einen Benutzer sperren