rizgmr.yml

Make me a plugin Name: Smpstart info For PaperMC for all version

When the command /smpstart is typed (only OPs can use this command):

A cooldown countdown should appear on the screen from 10 down to 1.

Below the countdown, in smaller text, it should say "SMP start in" (this should be configurable in the config file so it can be changed).

When the cooldown finishes:

It should display "GO!" on screen for 3 seconds.

After that, it should display "WORLD BORDER set now for 2000 blocks" for 3 seconds.

Then it should display "GRACE PERIOD FOR 10 MINUTES" in green color for 3 seconds, and PVP should be disabled for 10 minutes (the duration should be configurable in the config, both how long PVP is disabled and how long the message stays on the screen).

When PVP turns back on:

The screen should show in red color: "PVP ON!"

Below it, in smaller red text: "Can you kill anyone!"

When the WORLD BORDER message appears:

The world border should be set to 2000 blocks, and it should shrink/expand at a speed slightly faster than a player’s walking speed until it reaches the set size.

This should also be configurable in the config (so you can change the world border size and speed).

The message should display in green color with the configured size (e.g., "WORLD BORDER set now for 2000 blocks").

Kodari AI
KodariOct 1 at 4:46 pm 728 (v2)
rizgmr.yml

The compilation failed with this error:

code
Validation failed for compilation: Compilation failed with 6 error(s):

ERROR in src/main/java/com/smpstart/info/SmpstartInfoPlugin.java at line 11: cannot find symbol
        getCommand("smpstart").setExecutor(new SmpstartCommand(this));
                                               ^
  symbol: class SmpstartCommand
  location: class SmpstartInfoPlugin

ERROR in src/main/java/com/smpstart/info/SmpstartInfoPlugin.java at line 12: cannot find symbol
        getServer().getPluginManager().registerEvents(new PvpListener(this), this);
                                                          ^
  symbol: class PvpListener
  location: class SmpstartInfoPlugin

ERROR in   src/main/java/com/smpstart/info/SmpstartInfoPlugin.java at line 11: cannot find symbol
          getCommand("smpstart").setExecutor(new SmpstartCommand(this));
                                                 ^
  symbol: class SmpstartCommand
  location: class SmpstartInfoPlugin

ERROR in   src/main/java/com/smpstart/info/SmpstartInfoPlugin.java at line 12: cannot find symbol
          getServer().getPluginManager().registerEvents(new PvpListener(this), this);
                                                            ^
  symbol: class PvpListener
  location: class SmpstartInfoPlugin

ERROR in src/main/java/com/smpstart/info/SmpstartInfoPlugin.java at line 11: cannot find symbol
        getCommand("smpstart").setExecutor(new SmpstartCommand(this));
                                               ^
  symbol: class SmpstartCommand
  location: class SmpstartInfoPlugin

ERROR in src/main/java/com/smpstart/info/SmpstartInfoPlugin.java at line 12: cannot find symbol
        getServer().getPluginManager().registerEvents(new PvpListener(this), this);
                                                          ^
  symbol: class PvpListener
  location: class SmpstartInfoPlugin


=== COMPILATION ERROR ANALYSIS ===

MISSING CLASSES:
  - SmpstartCommand
  - PvpListener
ACTION: Create these classes or check imports

FILES TO INVESTIGATE:
  - src/main/java/com/smpstart/info/SmpstartInfoPlugin.java
  -   src/main/java/com/smpstart/info/SmpstartInfoPlugin.java
 exceeds maximum 

Please fix this error by creating a new artifact with the corrected code.

Kodari AI
KodariOct 1 at 4:47 pm 238 (v2)
Kodari can make mistakes. Review important code before using.
Files
src
build.gradle
Code
6 147
src/main/java/com/smpstart/info/SmpstartInfoPlugin.java
package com.smpstart.info;
import org.bukkit.plugin.java.JavaPlugin;
import com.smpstart.info.commands.SmpstartCommand;
import com.smpstart.info.listeners.PvpListener;
public class SmpstartInfoPlugin extends JavaPlugin{
private long graceEndTime = 0;
@Override public void onEnable(){
saveDefaultConfig();
getCommand("smpstart").setExecutor(new SmpstartCommand(this));
getServer().getPluginManager().registerEvents(new PvpListener(this),this);
}
public long getGraceEndTime(){
return graceEndTime;
}
public void setGraceEndTime(long time){
graceEndTime = time;
}
}