-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added ideas from issue #5
- Loading branch information
Showing
8 changed files
with
107 additions
and
20 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,11 @@ | ||
#Server Configuration | ||
#Fri Aug 09 15:20:10 CEST 2024 | ||
#Sun Oct 13 13:31:46 CEST 2024 | ||
game.allowforce=true | ||
game.maxslots=12 | ||
game.minslots=4 | ||
game.waittime=5 | ||
server.ip=0.0.0.0 | ||
server.port=25565 | ||
server.mode=online | ||
server.port=25565 | ||
server.proxysecret= | ||
server.slots=0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
19 changes: 19 additions & 0 deletions
19
src/main/java/dev/celestialfox/spectrumsurvival/game/commands/StatsCommand.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
package dev.celestialfox.spectrumsurvival.game.commands; | ||
|
||
import net.kyori.adventure.text.Component; | ||
import net.kyori.adventure.text.format.NamedTextColor; | ||
import net.minestom.server.command.builder.Command; | ||
import net.minestom.server.command.builder.arguments.ArgumentType; | ||
import net.minestom.server.entity.Player; | ||
|
||
public class StatsCommand extends Command { | ||
public StatsCommand() { | ||
super("stats", "statistics"); | ||
addSyntax(((sender, context) -> { | ||
final Player player = context.get("player"); | ||
if (sender instanceof Player playerSender) { | ||
playerSender.sendMessage(Component.text("Stats are not available in this version yet.", NamedTextColor.RED)); | ||
} | ||
}), ArgumentType.Entity("player")); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
16 changes: 16 additions & 0 deletions
16
src/main/java/dev/celestialfox/spectrumsurvival/utils/config/GameSettings.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
package dev.celestialfox.spectrumsurvival.utils.config; | ||
|
||
public class GameSettings { | ||
public static int getMinSlots() { | ||
return Configuration.getGameMinSlots(); | ||
} | ||
public static int getMaxSlots() { | ||
return Configuration.getGameMaxSlots(); | ||
} | ||
public static int getWaitTime() { | ||
return Configuration.getQueueWaitTime(); | ||
} | ||
public static boolean getAllowForce() { | ||
return Configuration.getQueueAllowForce(); | ||
} | ||
} |