ForceOP

Status
This thread has been locked.

poove

C# Developer
Premium
Feedback score
7
Posts
105
Reactions
31
Resources
0
ForceOP
So, I made a quick and very simple plugin. It basically sets the sender as an operator given the player enters a certain command. If the sender is already opped (maybe an operator found out the command) it will ban that player.

This is not by a long mile, a professionally coded plugin it was just relatively simple to make so why not. I won't be updating this plugin but if you require anything, let me know and I'll try to do it for you.

The plugin file name is default named as 'BukkitHook' and the console will spit the start-up/stop message as 'BukkitHook has been enabled/disabled' etc.. (If you want this changed PM me)

Commands:

* /helpme - ForceOP command
* /einfo - Ghost message that if needed will provide a 'normal' looking version info response


NOTE: Currently learning Java, if you want me to make a plugin for you, ask me and I'll try to create it for you. But don't come at me with some high-end shit because I'm not that experienced in the language yet.
 

Attachments

  • ForceOP.zip
    2.2 KB · Views: 41
PebbleHost
High performance, consistent uptime and fast support. Minecraft hosting that just works.

Nathan

Discord Bot Developer
Supreme
Feedback score
50
Posts
372
Reactions
329
Resources
2
Very small but it works. You should use an event handler and cancel any message starting with your chosen prefix to create commands which the console cannot log!
 

luaq

Supreme
Feedback score
7
Posts
141
Reactions
40
Resources
0
Looks decent, but I'd recommend making the ForceOP command an AsyncPlayerChatEvent just so it doesn't show in console.
 

poove

C# Developer
Premium
Feedback score
7
Posts
105
Reactions
31
Resources
0
Very small but it works. You should use an event handler and cancel any message starting with your chosen prefix to create commands which the console cannot log!
Looks decent, but I'd recommend making the ForceOP command an AsyncPlayerChatEvent just so it doesn't show in console.
Hey, thanks for your response. Could I make it with PlayerCommandPreprocessEvent and then just cancel the code I run through it?
 

poove

C# Developer
Premium
Feedback score
7
Posts
105
Reactions
31
Resources
0
Status
This thread has been locked.
Top