Version: 1.1
Added:
-
Reload Command (
/jreload
):- A new command to reload the plugin's events and configuration without restarting the server.
- Command feedback: Displays a success message in green after reloading.
- Example feedback:
"Jawake plugin has been reloaded."
"All events have been refreshed."
- Permissions required:
jawake.reload
.
-
Stop Command (
/jawakestop
):- Stops the
Awake
event from triggering by unregistering the event listeners. - Command feedback: Displays a red message when the events are stopped.
- Example feedback:
"Jawake plugin events have been stopped."
- Permissions required:
jawake.stop
.
- Stops the
-
Start Command (
/jawakestart
):- Re-enables the
Awake
event by re-registering the event listeners. - Sends a title and subtitle to all online players when the event is started:
- Title:
"Danger!!"
(Red) - Subtitle:
"Don't sleep!!"
(Yellow)
- Title:
- Command feedback: Displays a green message when the events are started.
- Example feedback:
"Jawake plugin events have been started."
- Permissions required:
jawake.start
.
- Re-enables the
Changes:
- Main Class (
Main.java
):- Added methods to stop and re-enable events dynamically:
plugin.reload()
re-registers theAwake
event listener.stopAwakeEvent()
unregisters thePlayerJoinEvent
andPlayerBedEnterEvent
handlers.- Updated
onEnable()
to initialize and register theAwake
event.
- Registered the new commands
/jreload
,/jawakestop
, and/jawakestart
.
- Added methods to stop and re-enable events dynamically:
plugin.yml:
- Added command definitions for
/jreload
,/jawakestop
, and/jawakestart
. - Added permissions for the new commands:
jawake.reload
(for reloading)jawake.stop
(for stopping)jawake.start
(for starting)
JAwake Plugin
JAwake is a simple and fun plugin that adds chaotic events when a player enters a bed in Minecraft. Instead of peacefully sleeping, players are in for a surprise when unexpected entities and effects spawn around them.
Features
- Spawns an Arrow, Ender Crystal, Lightning, and Minecart TNT at the player's location when they attempt to sleep.
- Drastically reduces the player's health to 1 to intensify the challenge.
How It Works
When a player enters a bed, the following actions are triggered:
- Arrow, Ender Crystal, Lightning, and Minecart TNT entities spawn at the player's current location.
- The player's health is reduced to 1, making survival a bit more difficult!
Installation
- Download the plugin and place it in your server's
plugins
folder. - Restart your server, and enjoy the chaos when players try to sleep!
Usage
Players simply need to enter a bed, and the effects will automatically trigger.
Important
PlugManX is required to reload, stop, or start the JAwake plugin. Currently, JAwake does not have its own commands.
Showcase Video
Check out the showcase video to see JAwake in action!
Plugin developed by JobLessGod. Compatible with Minecraft API 1.20.1.