Plugin category: Admin Tools Suggested name: InternalAdmin What I want: Hello to all of you amazing people who may be reading this post, I would like this very lightweight and easy plugin to be made for myself and who ever else would like to download it. I know I can use a variety of plugins to get these commands but I'd like this plugin. Mute Chat /mutechat is first up and basically speaks for itsself. With this command I'd like it to be togglable and to cancel the entire server's chat except the players who have the internal.chat bypass permission to speak while its muted and to even leave messages in the chat, when it's enabled I want it to broadcast in red "Server's chat is now muted!" and when its disabled, also in red "Server's chat is now unmuted, you may speak!" and when people try to speak without the bypass permission I want it to cancel the message and send them a message in red saying "Chat is currently muted! You may not speak!" It's great for spreading out important messages so everyone can read it and it can also be used to punish the chat! Lock Server /lockserver is next and is in a way almost the same thing as a whitelist. I want this command to be togglable and to send out a message saying in red "Server is now locked for Staff only. 10 seconds to leave or be kicked." and then 10 seconds later kick all the players without the internal.join permission. When the players without the permission try joining the server I would like it to stop them, (like when you're banned) and have a message on the screen saying in red, "Server is now locked for Staff only, join back at a later time! Thank you!" Very handy for server repairs and fixes. Busy /busy is third up and is another togglable command. The idea behind /busy is to stop normal players from spamming owners and high admins when they are busy. When busy is enabled, I want it to block all incoming messages from players that dont have the internal.staff bypass permission. When busy is enabled and someone without the permission tries to message them I want it to cancel the message and send them a message in red saying "(Name) is busy right now and will not recieve your message, contact a moderator for help." That way only if it's really important a moderator can then message you about the problem, (their message goes through because of the bypass permission). WhoIs /whois <name> Coming in at fourth is whois. This is an idea I had that is kind of based off the command from essentials, when admins / people with the permission internal.whois use the command on a player I want basic data to show up for the player they put, so like IP, time played total, time played this session and a trickier part if it is possible, I also want it to list their possible alts, so all the different accounts with the same IP address will show up. Blacklist /blacklist <name> [reason] and /blackcheck <name> is last but certainly not least! This one may be a little hard, I would like this command to ban the person it first listed for a reason or without one being provided, ban the player, the IP, and all the associated accounts with the same IP address, this is good for players that just keep logging on with different names and causing mischeif on your server, you can finally get rid of them. I want it to be broadcasted to the server in green and say "(PlayersName) has been BLACKLISTED from playing on the server by (AdminsName)." I want it to ban the player obviously and send them in their ban message in red "You have been BLACKLISTED from playing on the server! (go down two lines) Reason: (reason provided)." That will show up everytime they try to login to the server. Now for the /blackcheck <name> part I want all players to be stored in a folder with the players name with a file inside showing if they've been blacklisted and for what reason. That way you can /blackcheck <name> and it will return and say something like this if they are blacklisted or this if they aren't. Ideas for commands: /mutechat - Mutes the chat. /lockserver - Locks the server. /busy - Marks as busy / toggles messages. /whois - Looks up players. /blacklist - Bans the IP and all accounts under the same IP. /blackcheck - Check if a player is blacklisted. Ideas for permissions: internal.chat - Be able to chat when server's chat is muted. internal.join - Be able to join the server while it's locked. internal.staff - Be able to message players while they have /busy enabled. internal.mutechat - Let's you mute the chat. internal.lockserver - Lets you lock the server. internal.busy - Let's you mark yourself as busy / toggle messages. internal.whois - Let's you lookup players. internal.blacklist - Let's you blacklist a player, IP, and all associated accounts. internal.blackcheck - Let's you check if a player is blacklisted and for what reason. When I'd like it by: ASAP Thank you in advance!
BJCxMC I have started to work on this, but I'm kind of a newbie to bukkit so this may take a bit... Right now, I have coded the mutechat function.
MomsKnife would you like my source so far? MomsKnife Just if you want it... https://github.com/AXCoding/InternalAdmin EDIT by Moderator: merged posts, please use the edit button instead of double posting.
If I'm going to do this plugin, don't expect it soon - within a week, sure. Have a couple of plugins I'm already busy with, Chat, Lock, and Busy are implemented. Going to sleep :3 EDIT by Moderator: merged posts, please use the edit button instead of double posting.
No problem, thank you so much! thank you for even trying, appreciate it! EDIT by Moderator: merged posts, please use the edit button instead of double posting.
yes and for where the accounts are, I would like it to list all accounts that share the same IP that have logged onto the server if that is possible
Got a bit sidetracked, coded in two new features: /commandsee See commands run by players /clearchat Clears the chat buffer
Regular players without a certain permission will have a cooldown of 2 seconds between running commands. expect this by the end of tomorrow. All known bugs fixed. > Blacklist time EDIT by Moderator: merged posts, please use the edit button instead of double posting.
I think I may ditch the whole "blacklist" idea. Finished it and lost the code, but anyways, it seems kinda pointless to make a command that already exists, in essentials, /ipban & /ban Still going to try to find new features to add, though.
Thats fine, you don't need to add any more commands unless you think they fit this whole idea, so if you can't find any, then just upload the jar WAIT! I have an idea, if you're down to add one to two more commands that will be fairly easy I'm sure. EDIT by Moderator: merged posts, please use the edit button instead of double posting.
Okay so since you scratched the blacklist idea, how about almost the same thing but just for ban? So /ban <player> [reason] obviously and it has this color scheme when they get kicked for the ban to take place and get greated with that when they try to log in. (Dont use dark red for the name, use p.getDisplayName() please) So again, use that format and colors for the kick for the ban to actually happen and they get that message when they try to login and it doesn't allow them because they are banned. The second command is like the blackheck command I first listed, it allows admins to check the state of the player, if they are banned, banned by, how many times they've been banned on the server, and reason for ban, -- THIS for if they are banned, and THIS if they are not banned. Can this be done? EDIT: Each time a player is banned it gets logged in their own config/data file so it can tell how many times that player has been banned, reason for the ban, and then the banner itsself and will update whenever they get banned, so if I've never gotten banned before in the data file it will say something like ban-count: 0, but as soon as I am banned, it updates to one and saves the reason and banner. so something like this maybe? ban-count: 1 ban-reason: reason banner: players name who banned them.
To do the logging with command, I'd have to code in tempbans/bans/mutes into the plugin. With what I have currently, you can check if the player is banned, but that's about it.
And if they are can you atleast check the reason or no? You could just upload the jar and ill test everything out and let you know how it goes. EDIT by Moderator: merged posts, please use the edit button instead of double posting.
Here you go! <3 http://dev.bukkit.org/bukkit-plugins/internaladmin/ http://dev.bukkit.org/bukkit-plugins/internaladmin/files/1-internal-admin-1-7-10/
Works good except for some bugs I have notcied, bug number 1, lock server command does not kick all the players, I have a second account opened and it did not kick it (was not op'd and had no perms) and they could join the server while lock server was enabled, bug number 2, /busy still allows messages to go through even though they do not have the override perm, http://gyazo.com/65043f0e9afff1f9e473dcf9c6fa6529, see? bug number 3, on the /getinfo command I think its storing all the names for however many times they have logged on or something? I got info on myself and only one name popped up, mine, and when I did it on my other accounts my name showed twice, http://gyazo.com/b37c11444878d770cad204722382d82e, bug number 4, /commandsee does not work, it doesnt show the commands they used. Also, when will the ban check be implemented?
What version are you using? I've checked and all of these work fine for me. Ban check is already in, it's /baninfo <name>
1.7.2, I havent updated since optifine came out for this version ahah what version are you on? EDIT: Ohh, I just didnt know because it wasnt in the help pages EDIT by Moderator: merged posts, please use the edit button instead of double posting.