
hideseek
public class HideSeek extends JavaPlugin implements Listener { @EventHandler public void onMoveArmor(InventoryClickEvent e) { if...
00—spigotServer1.19.4mod
What was built
- HideSeek Spigot plugin that runs a simple hide-and-seek minigame on 1.19.4 servers.
- Command flow:
/hideseek join [hider|seeker],/hideseek leave, and/hideseek start <seconds>to launch a timed round. - Players marked in-game cannot drop items or move inventory slots while the round is active.
- Hiders receive a knockback stick and green-dyed leather armor; seekers receive an enchanted iron sword and red-dyed leather armor.
- Sidebar scoreboard shows “HIDE SEEK”, a countdown timer, and a footer line, updating every second during a round.
Implementation notes
- Main plugin class:
com.playergames.hideseek.HideSeekregistered as both listener and command executor. - In-game, hider, and seeker rosters are tracked with concurrent sets; the scheduler ticks once per second to refresh scoreboards and stop the game when the timer expires.
- Scoreboard is recreated per player to avoid objective conflicts and is cleared for players when they leave or when a round ends/when the plugin disables.
- Role kits are reapplied at round start and also clear the player’s inventory before equipping the dyed leather pieces.
Limitations and ideas
- No teleporting, lobby handling, or automatic win detection is included; rounds simply end when the timer hits zero.
- Inventories are not restored after a round; add backup/restore if players should keep previous items.
- Players remain marked as in-game after a round until they use
/hideseek leaveor you start another round; add automatic cleanup if desired.