Plugin category: AdminTools Minecraft version: 1.10.2+ Suggested name: AdminToolsGUI What I want: What I want to the plugin to do is when you do /punish [Player] it brings up a gui with a list of these punishments "Warn, Freeze, Mute, Temp Mute, Kick, Temp Ban, Ban" but make it so I can configure it so I can add more later Ideas for commands: /punish <player> or some aliases' Ideas for permissions: AdminTool.Warn AdminTool.Freeze AdminTool.Mute -Allows temp mute too AdminTool.Kick AdminTool.TempBan AdminTool.Ban When I'd like it by: Soon if possible
I'll start working on this. I'll probably have it done by tonight or some time tomorrow. Do you want the command to be /punish <player> <reason> or just /punish <player>?? Also what do you mean by freeze? is that already a command in essentials or do you want me to disable player movement? EDIT: I'm finished. Download it from here!
@Markus709 I think there might be a problem with your plugin here, where you have a global player object for target. What happens if someone else tries to punish another player whilst someone is already mid-punishment for a different player? Won't it overwrite the first guys punishment target player? I reckon so. A better way to do it would be a hashmap imo.
I've only got one account so I didn't test for that. I'm not sure it would overwrite it, though, since the command sender and target are set specific to the names.
The target player isn't unique to each command sender though, it's global and is overwritten by each commandsender