sohammm_xd

The plugin will be for my minecraft smp named rift SMP so every 2hrs I'll run a cmd in chat like /event rift . That will turn the sky purple and it will start snowing glowing purple particles . When I run the cmd it will enable player tracking and give each player strength 2 and regeneration 2 and golden apple's effect will be 2x .

Kodari AI
KodariMay 5 at 10:43 am 7,554 (v2)

I’ll create a custom Rift SMP event plugin that triggers a special purple-themed event with enhanced effects and player tracking.

RiftEvent
A custom SMP event system for Rift SMP. The /event rift command triggers a supernatural rift phenomenon that transforms the environment with falling purple particles, grants all players enhanced combat buffs (Strength 2 and Regeneration 2), enables real-time player tracking via ActionBar, and doubles the effectiveness of golden apple effects. Perfect for creating intense PvP windows or special server events with atmospheric visual effects.

All files created! The RiftEvent plugin is complete with:

  • RiftEventManager: Handles event activation, purple particle effects, potion buffs (Strength 2 & Regeneration 2), and real-time player tracking via ActionBar

  • RiftEventCommand: /event rift to start and /event stop to end the event

  • RiftEventListener: Tracks player joins/quits during events and doubles golden apple effects (both healing and potion duration/amplifier)

  • Config: Customizable messages and settings

The plugin grants riftevent.admin permission for the /event command and displays tracked player distances in the ActionBar every second.

Kodari can make mistakes. Review important code before using.
Files
src
build.gradle
Code
7 395
src/main/java/com/riftsmp/riftevent/RiftEvent.java
package com.riftsmp.riftevent;

import com.riftsmp.riftevent.command.RiftEventCommand;
import com.riftsmp.riftevent.listener.RiftEventListener;
import com.riftsmp.riftevent.manager.RiftEventManager;
import lombok.Getter;
import org.bukkit.plugin.java.JavaPlugin;

@Getter
public class RiftEvent extends JavaPlugin {
    
    private RiftEventManager eventManager;
    
    @Override
    public void onEnable() {
        saveDefaultConfig();
        
        this.eventManager = new RiftEventManager(this);
        
        getCommand("event").setExecutor(new RiftEventCommand(this));
        getServer().getPluginManager().registerEvents(new RiftEventListener(this), this);
        
        getLogger().info("RiftEvent has been enabled!");
    }
    
    @Override
    public void onDisable() {
        if (eventManager.isEventActive()) {
            eventManager.stopEvent();
        }
        getLogger().info("RiftEvent has been disabled!");
    }
}