I Would like to know if someone can make me a plugin where instead of typing /kick name you do For Example /caps name /adv name [advertising] /Lang name [Language] /spam name /kick name Thank's Alot. Rosen
So basically you want predefined kick messages? Sounds cool, might add it to CommandsEX' banning/kicking
do in this exmaple format plz http://forums.bukkit.org/threads/read-me-first-plugin-requests-guide.81209/
How about this: /msgkick [caps, adv, lang, spam, default] [player] You can define the messages in a config file.
[quote uid=90712353 name="iiCyprezz" post=1297573]I Would like to know if someone can make me a plugin where instead of typing /kick name you do For Example /caps name /adv name [advertising] /Lang name [Language] /spam name /kick name Thank's Alot. Rosen[/quote] I have made your plugin for you. Source Code. <Edit by Moderator: Redacted mediafire url> Permissions: * bbykicks.caps * bbykicks.adv * bbykicks.lang * bbykicks.spam * bbykicks.kick * bbykicks.* Obviously, OPs get all the permissions. Also, all the commands you wished for are included.
[quote uid=94887 name="JjPwN1" post=1300537]I have made your plugin for you. Source Code. <Edit by Moderator: Redacted mediafire url> Teach me o_o
Woobie Well this plugin was extremely easy. All you had to do was create the "targetPlayer" from the 1st argument Code: Player targetPlayer = player.getServer().getPlayer(args [0]); And then go from there Code: if(cmd.getName().equalsIgnoreCase("caps")){ if(player.hasPermission("bbykicks.caps") || player.hasPermission("bbykicks.*") || player.isOp()){ targetPlayer.kickPlayer("You have been kicked for CAPS-lock by " + player.getName()); player.sendMessage(ChatColor.GOLD + "[BbyKicks] " + ChatColor.DARK_RED + "You have kicked " + targetPlayer.getName()); return true;
[quote uid=94887 name="JjPwN1" post=1300537]I have made your plugin for you. Source Code. <Edit by Moderator: Redacted mediafire url> Permissions: * bbykicks.caps * bbykicks.adv * bbykicks.lang * bbykicks.spam * bbykicks.kick * bbykicks.* Obviously, OPs get all the permissions. Also, all the commands you wished for are included.[/quote] The only thing about that plugin is that there's no configuration to control messages. I started working on one last night that has a configuration. I'd hate for the code to go to waste :/ Here's my plugin called MessageKick <Edit by Moderator: Redacted mediafire url> Commands: /msgkick [caps | advertising | language | spam] [player] Permissions: msgkick.* msgkick.caps msgkick.advertising msgkick.language msgkick.spam The configuration is self explanatory, just type whatever message you want to appear per kick reason. I can add /msgban that uses the same idea, but with a ban instead of a kick. I can also provide source code to anyone interested. EDIT by Moderator: merged posts, please use the edit button instead of double posting.
[quote uid=90694345 name="PogoStick29" post=1301577]Here's my plugin called MessageKick <Edit by Moderator: Redacted mediafire url> Commands: /msgkick [caps | advertising | language | spam] [player] Permissions: msgkick.* msgkick.caps msgkick.advertising msgkick.language msgkick.spam The configuration is self explanatory, just type whatever message you want to appear per kick reason. I can add /msgban that uses the same idea, but with a ban instead of a kick. I can also provide source code to anyone interested.[/quote] Works perfectly, thanks!
PogoStick29 I could of easily made a configuration, but the OP didn't ask for one, and I didn't really think about adding one.
Ok. Looking back on what I said, I think I might have been a bit rude. Our plugins are both almost the same, and both get the job done