symbols and fastbridge description

This commit is contained in:
2025-09-19 21:48:33 +02:00
parent e4fff421f5
commit fa69d4976d
5 changed files with 26 additions and 1 deletions

View File

@@ -38,7 +38,7 @@ public enum GameList {
JUMPDIVE(new JumpDiveFactory(), GameType.JUMPNRUN), JUMPDIVE(new JumpDiveFactory(), GameType.JUMPNRUN),
SUMO(new SumoFactory(), GameType.PVP), SUMO(new SumoFactory(), GameType.PVP),
HIGHGROUND(new HighGroundFactory(), GameType.PVP), HIGHGROUND(new HighGroundFactory(), GameType.PVP),
FASTBRIDGE(new FastbridgeFactory(), GameType.PROTOTYPE); FASTBRIDGE(new FastbridgeFactory(), GameType.OTHER);
private final GameFactory factory; private final GameFactory factory;
private final GameType type; private final GameType type;

View File

@@ -5,6 +5,7 @@ import eu.mhsl.minenet.minigames.instance.game.stateless.config.GameFactory;
import eu.mhsl.minenet.minigames.instance.game.stateless.config.Option; import eu.mhsl.minenet.minigames.instance.game.stateless.config.Option;
import eu.mhsl.minenet.minigames.instance.room.Room; import eu.mhsl.minenet.minigames.instance.room.Room;
import eu.mhsl.minenet.minigames.message.component.TranslatedComponent; import eu.mhsl.minenet.minigames.message.component.TranslatedComponent;
import net.minestom.server.item.Material;
import java.util.Map; import java.util.Map;
@@ -15,6 +16,16 @@ public class FastbridgeFactory implements GameFactory {
return TranslatedComponent.byId("game_Fastbridge#name"); return TranslatedComponent.byId("game_Fastbridge#name");
} }
@Override
public TranslatedComponent description() {
return TranslatedComponent.byId("game_Fastbridge#description");
}
@Override
public Material symbol() {
return Material.WHITE_WOOL;
}
@Override @Override
public Game manufacture(Room parent, Map<String, Option<?>> configuration) throws Exception { public Game manufacture(Room parent, Map<String, Option<?>> configuration) throws Exception {
return new Fastbridge().setParent(parent); return new Fastbridge().setParent(parent);

View File

@@ -22,6 +22,11 @@ public class HighGroundFactory implements GameFactory {
return TranslatedComponent.byId("game_Highground#description"); return TranslatedComponent.byId("game_Highground#description");
} }
@Override
public Material symbol() {
return Material.GOLDEN_HELMET;
}
@Override @Override
public ConfigManager configuration() { public ConfigManager configuration() {
return new ConfigManager() return new ConfigManager()

View File

@@ -21,6 +21,11 @@ public class SumoFactory implements GameFactory {
return TranslatedComponent.byId("game_Sumo#description"); return TranslatedComponent.byId("game_Sumo#description");
} }
@Override
public Material symbol() {
return Material.SLIME_BALL;
}
@Override @Override
public ConfigManager configuration() { public ConfigManager configuration() {
return new ConfigManager() return new ConfigManager()

View File

@@ -139,3 +139,7 @@ description;Knock your enemies off and stay on top!;Versuche deinen Gegner von d
ns:game_Highground#;; ns:game_Highground#;;
name;Highground;Hochburg name;Highground;Hochburg
description;Stay on the high ground to win!;Bleibe solange wie möglich auf der Hochburg, um zu gewinnen! description;Stay on the high ground to win!;Bleibe solange wie möglich auf der Hochburg, um zu gewinnen!
;;
ns:game_Fastbridge#;;
name;Fastbridge;Fastbridge
description;Speedbridge to the other platform. The first one there wins!;Baue dich so schnell wie möglich zur anderen Plattform. Wer zuerst dort ist, gewinnt!
Can't render this file because it has a wrong number of fields in line 114.