02/08/2020 13:23:57
Hello everyone,,
I am developing a Minecraft server while doing the plugins myself for a practice issue; and I'm creating a plugin to protect an area, including the spawn, from the grievance.
Except that I'm on it since yesterday morning and I still have not figured out how I can do it.
And what's even more amazing is that last night after a modification, the plugin worked on all the spawn chunk, which was perfect, but it strangely stopped working after 5 minutes and since then I have not not at all to redo it even in reload the server.
I hope one of you will tell me where the problem is ..

Here is the code:

package fr.Herobrix.pluginTest;

import org.bukkit.event.EventHandler;
import org.bukkit.event.Listener;

import org.yaml.snakeyaml.constructor.SafeConstructor;

public class ProtectionSpawn implements Listener {

public ProtectionSpawn (pluginTest pluginTest) {

public void onBlockBreak (SafeConstructor e)

int x = 0;
int z = 5;



I specify that the text editor reports an error for "int x = 0;" and "int z = 5;" surely because it does not find them but I can not see how to adapt it without errors. And then it is with that that the plugin worked for 5 min on all the chunk.

thank you in advance for your help.


  1. Quote
  2. Report

Connectez-vous pour répondre à ce message