Описание
## ⚡ Magnets Plugin
A simple Paper plugin that allows you to create **magnetic fields** that pull nearby entities (players, mobs, and items) toward a specific point — inspired by the magnetic mechanic seen on the **Mineshield** Minecraft server.
### 🧲 Features
* Pulls **all entities** within a configurable radius toward a chosen point.
* Magnetic strength increases the closer an entity is to the center.
* The magnetic field **persists after server restarts**.
* Easy to control via a single `/magnet` command.
### 🧱 Commands
| Command | Description |
| ----------------------------------------------- | ---------------------------------------------------------------------------- |
| `/magnet start ` | Starts a magnetic field at the given coordinates and saves it to the config. |
| `/magnet stop` | Disables the current magnetic field. |
| `/magnet status` | Displays information about the active magnet. |
Example:
```
/magnet start 100 70 100 25 0.3
```
This command creates a magnet centered at coordinates `(100, 70, 100)`
with a radius of `25` blocks and a maximum pull strength of `0.3`.
### ⚙️ Configuration
A `config.yml` file will be automatically generated in the plugin folder:
```yaml
magnet:
enabled: false
world: world
x: 0.0
y: 0.0
z: 0.0
radius: 10.0
strength: 0.3
```
When a magnet is active, its parameters are stored here and automatically reloaded when the server restarts.
### 🧩 Permissions
| Permission | Description | Default |
| ------------ | ---------------------------------- | ------- |
| `magnet.use` | Allows using the `/magnet` command | OP |
---
**Created by AndcoolSystems with ♥, 10.10.2025**