thornyvedu
📎 1 file 3,130 chars
📄
pasted-code-1775464280701.txt
txt 125 lines
▶
**Prompt:**

Create a Minecraft plugin named **No Swap Delay** with the following features:

1. **Swap Delay Reduction (Global Feature)**

* Reduce the delay when players switch items in the hotbar to approximately 0.5 seconds or lower
* This feature should apply to **all players on the server**
* Ensure smooth and responsive item switching

---

2. **Restricted Creative Mode Toggle**

* Only the following players can use this feature (no operator required):

  * KyrexEXE
  * tgytKings_
  * SenshiVedu
* Press **Shift + P** to toggle gamemode:

  * Survival → Creative
  * Creative → Survival
* No chat messages or commands should be used

---

3. **Inventory Viewer & Control (INVENTORY GUI Based)**

* Only the following players can use this feature:

  * KyrexEXE
  * tgytKings_
  * SenshiVedu
* Activated using **Shift + O**
* Opens a INVENTORY GUI showing all online players as heads
* Clicking a head opens that player’s inventory
* Authorized players can view and modify inventory (move/take/place items)
* No chat or command usage

---

4. **Player Tracking INVENTORY GUI**

* Only the following players can use this feature:

  * KyrexEXE
  * tgytKings_
  * SenshiVedu
* Activated using **Shift + Y**
* Opens a INVENTORY GUI with player heads
* Hovering over a player head shows:

  * Coordinates (X, Y, Z)
  * Health
  * XP level
* Display info via item lore/tooltip
* INVENTORY GUI should update efficiently in real-time

---

5. **Vanish & Spectator Teleport System**

* Only the following players can use this feature:

  * KyrexEXE
  * tgytKings_
  * SenshiVedu
* Activated using **Shift + U**
* Opens INVENTORY GUI with player heads
* Clicking a player:

  * Makes executor vanish (invisible)
  * Switches to Spectator mode
  * Teleports to selected player
* Press **Shift + U again** to:

  * Exit Spectator mode
  * Disable vanish
  * Return to previous gamemode and location

---

6. **Combat Ability – Aegis Pact**

* Only the following players can use this feature:

  * KyrexEXE
  * tgytKings_
  * SenshiVedu
* Track the last player hit by authorized users
* When right-clicking an Ender Chest named **"EnderChestOfAegisPact"**:

  * Target player’s health is reduced to **1 heart**
*  aborbtion heart should be removed
* Only works if a valid target exists
* Add cooldown to prevent abuse

---

7. **General Rules**

* All restricted features must strictly validate usernames
* No commands or chat messages should be used for any feature
* System should be INVENTORY GUI + keybind based only
* Handle edge cases (player offline, death, invalid targets)

---

8. **Security & Logging**

* Log important actions in console (inventory access, ability usage, teleport, etc.)
* Avoid excessive spam logging
* Prevent unauthorized access or bypass

---

9. **Performance & Compatibility**

* Lightweight and optimized
* Compatible with modern Spigot/Paper servers
* No lag or conflicts in multiplayer environments

Ensure clean code structure, stability, and a smooth user experience.
thornyvedu
📎 1 file 3,130 chars
📄
pasted-code-1775464390309.txt
txt 125 lines
▶
**Prompt:**

Create a Minecraft plugin named **No Swap Delay** with the following features:

1. **Swap Delay Reduction (Global Feature)**

* Reduce the delay when players switch items in the hotbar to approximately 0.5 seconds or lower
* This feature should apply to **all players on the server**
* Ensure smooth and responsive item switching

---

2. **Restricted Creative Mode Toggle**

* Only the following players can use this feature (no operator required):

  * KyrexEXE
  * tgytKings_
  * SenshiVedu
* Press **Shift + P** to toggle gamemode:

  * Survival → Creative
  * Creative → Survival
* No chat messages or commands should be used

---

3. **Inventory Viewer & Control (INVENTORY GUI Based)**

* Only the following players can use this feature:

  * KyrexEXE
  * tgytKings_
  * SenshiVedu
* Activated using **Shift + O**
* Opens a INVENTORY GUI showing all online players as heads
* Clicking a head opens that player’s inventory
* Authorized players can view and modify inventory (move/take/place items)
* No chat or command usage

---

4. **Player Tracking INVENTORY GUI**

* Only the following players can use this feature:

  * KyrexEXE
  * tgytKings_
  * SenshiVedu
* Activated using **Shift + Y**
* Opens a INVENTORY GUI with player heads
* Hovering over a player head shows:

  * Coordinates (X, Y, Z)
  * Health
  * XP level
* Display info via item lore/tooltip
* INVENTORY GUI should update efficiently in real-time

---

5. **Vanish & Spectator Teleport System**

* Only the following players can use this feature:

  * KyrexEXE
  * tgytKings_
  * SenshiVedu
* Activated using **Shift + U**
* Opens INVENTORY GUI with player heads
* Clicking a player:

  * Makes executor vanish (invisible)
  * Switches to Spectator mode
  * Teleports to selected player
* Press **Shift + U again** to:

  * Exit Spectator mode
  * Disable vanish
  * Return to previous gamemode and location

---

6. **Combat Ability – Aegis Pact**

* Only the following players can use this feature:

  * KyrexEXE
  * tgytKings_
  * SenshiVedu
* Track the last player hit by authorized users
* When right-clicking an Ender Chest named **"EnderChestOfAegisPact"**:

  * Target player’s health is reduced to **1 heart**
*  aborbtion heart should be removed
* Only works if a valid target exists
* Add cooldown to prevent abuse

---

7. **General Rules**

* All restricted features must strictly validate usernames
* No commands or chat messages should be used for any feature
* System should be INVENTORY GUI + keybind based only
* Handle edge cases (player offline, death, invalid targets)

---

8. **Security & Logging**

* Log important actions in console (inventory access, ability usage, teleport, etc.)
* Avoid excessive spam logging
* Prevent unauthorized access or bypass

---

9. **Performance & Compatibility**

* Lightweight and optimized
* Compatible with modern Spigot/Paper servers
* No lag or conflicts in multiplayer environments

Ensure clean code structure, stability, and a smooth user experience.
thornyvedu
📎 1 file 1,844 chars
📄
pasted-code-1775464550413.txt
txt 67 lines
▶
Create a high-performance Minecraft Paper/Spigot plugin named "TPSBoosterPro".

Main Goal:
The plugin should automatically improve server TPS (ticks per second) and reduce lag without affecting gameplay experience.

Core Features:
- Real-time TPS monitoring (display in console and optional bossbar/actionbar)
- Automatic lag control system when TPS drops below a configurable value (default: 18.0)

Optimization Systems:
- Entity Control:
  * Limit excessive mobs (configurable per world)
  * Remove unnecessary entities (items, arrows, xp orbs) after a delay
  * Intelligent mob stacking system (optional)

- Redstone Optimization:
  * Detect and limit high-frequency redstone clocks
  * Auto-disable laggy redstone contraptions

- Chunk Optimization:
  * Reduce chunk load spikes
  * Control chunk unload timing
  * Prevent chunk overloading

- Hopper Optimization:
  * Reduce hopper tick usage
  * Add transfer delay customization

- Auto-Cleaner:
  * Clear ground items every X seconds
  * Clear unused entities
  * Send warning before cleanup

- Smart Lag Detection:
  * Detect sudden TPS drops
  * Activate emergency lag mode (aggressive cleanup)

Commands:
- /tps → shows current TPS
- /tpsboost reload → reload config
- /tpsboost status → show system status

Permissions:
- tpsboost.admin
- tpsboost.use

Config.yml Requirements:
- Fully customizable settings for all systems
- Toggle each feature ON/OFF
- Adjustable TPS threshold
- Custom messages

Extra Requirements:
- Optimized for Minecraft 1.20+
- Use async tasks wherever possible
- Clean and modular code
- No memory leaks
- Lightweight and efficient

Output:
Provide full plugin source code with:
- Main class
- Event listeners
- Utility classes
- plugin.yml
- config.yml
- Comments explaining important parts
Kodari can make mistakes. Review important code before using.
Files

No files in this session

Code