SteamWar/FightSystem
Archiviert
13
1

Standalone FightSystem #326

Zusammengeführt
Lixfel hat 4 Commits von standalone nach master 2022-03-03 18:01:51 +01:00 zusammengeführt
4 geänderte Dateien mit 45 neuen und 24 gelöschten Zeilen
Nur Änderungen aus Commit f228f6225f werden angezeigt - Alle Commits anzeigen

Datei anzeigen

@ -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)

Datei anzeigen

@ -19,6 +19,8 @@
package de.steamwar.fightsystem; package de.steamwar.fightsystem;
import com.comphenix.tinyprotocol.TinyProtocol;
import de.steamwar.core.Core;
import de.steamwar.fightsystem.commands.*; import de.steamwar.fightsystem.commands.*;
import de.steamwar.fightsystem.countdown.*; import de.steamwar.fightsystem.countdown.*;
import de.steamwar.fightsystem.event.HellsBells; import de.steamwar.fightsystem.event.HellsBells;
@ -56,6 +58,11 @@ public class FightSystem extends JavaPlugin {
@Override @Override
public void onEnable() { public void onEnable() {
if(Core.getInstance() == null) {
Core.setInstance(this);
TinyProtocol.init();
}
message = new Message("de.steamwar.fightsystem.FightSystem", FightSystem.class.getClassLoader()); message = new Message("de.steamwar.fightsystem.FightSystem", FightSystem.class.getClassLoader());
new EntityDamage(); new EntityDamage();

Datei anzeigen

@ -19,7 +19,9 @@
package de.steamwar.fightsystem.commands; package de.steamwar.fightsystem.commands;
import de.steamwar.core.Core;
import de.steamwar.fightsystem.ArenaMode; import de.steamwar.fightsystem.ArenaMode;
import de.steamwar.fightsystem.FightSystem;
import de.steamwar.fightsystem.fight.Kit; import de.steamwar.fightsystem.fight.Kit;
import de.steamwar.fightsystem.states.FightState; import de.steamwar.fightsystem.states.FightState;
import de.steamwar.fightsystem.states.StateDependentCommand; import de.steamwar.fightsystem.states.StateDependentCommand;
@ -42,8 +44,10 @@ public class AkCommand implements CommandExecutor {
return false; return false;
} }
Player player = (Player) sender; 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; return false;
} }

Datei anzeigen

@ -1,2 +1,35 @@
# FightSystem # 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)