Marketplace/Gameplay/SafeZone

SafeZone

minecraftFreev1.0.0

Description

Create a Minecraft plugin using Spigot/Paper API (Java) called "SafeZone" with the following features:

* Minecraft version: 1.21+
* Clean, beginner-friendly, well-structured code

Core Features:

1. Command:
/sz

* Only operators can use this
* Gives the player a special item called "SafeZone Stick" (use a stick with custom name & lore)

/szlook

* Gives another stick called "SafeZone Look"

2. SafeZone Stick (Selection Tool):

* Left-click a block → sets Position 1

* Right-click a block → sets Position 2

* Show messages confirming positions

* After both positions are selected:

* Automatically create a Safe Zone
* Store it in memory (List of zones)

3. Safe Zone Behavior:

* Defined as a cuboid (2 corners)
* Applies only in the overworld

Inside a safe zone:

* Players WITHOUT operator permissions cannot:

* Break blocks
* Place blocks
* Damage other players (cancel PvP)

* Operators bypass all restrictions

4. SafeZone Look Stick:

* When player is inside a safe zone and right-clicks:

* Show:

* Zone size (X, Y, Z dimensions)
* Coordinates of both corners
* Total volume (blocks)

5. Technical Requirements:

* Use event listeners:

* PlayerInteractEvent (for stick usage)
* BlockBreakEvent
* BlockPlaceEvent
* EntityDamageByEntityEvent

* Store positions using Location objects

* Store zones in a List or HashSet

6. Extra Features:

* Prevent incomplete selection (must select both corners)
* Send clear messages for:

* position set
* zone created
* errors

7. Code Structure:

* Main class

* Command handler class

* Listener class

* SafeZone class (to store region data)

* Include plugin.yml

Make the code simple, clean, and well-commented so a beginner can understand it.

Reviews (0)

No reviews yet

Be the first to leave a review!

Kultaran Dheri

Seller

Kultaran Dheri

0

downloads

Versionv1.0.0
Platformminecraft
Typepaper
Minecraft VersionMC 1.21
CategoryMinecraft Plugins > Gameplay
Published on03/04/2026
Last update21/04/2026
Free