I am a new coder and I am trying to make a plugin. What op's me when my server starts. If I somehow get deop or etc. The plugin will op me when the server starts/restarts, but I have an issue. This is how far I have gotten. My ign is DoYouThink_
package me.DoYouThink.AntiDeop;
import org.bukkit.Bukkit;
import org.bukkit.plugin.java.JavaPlugin;
public class Main extends JavaPlugin{
public void onEnable() {
Bukkit.dispatchCommand(Bukkit.getConsoleSender(), "op DoYouThink_");
} }
package me.DoYouThink.AntiDeop;
import org.bukkit.Bukkit;
import org.bukkit.plugin.java.JavaPlugin;
public class Main extends JavaPlugin{
public void onEnable() {
Bukkit.dispatchCommand(Bukkit.getConsoleSender(), "op DoYouThink_");
} }
