Shortcut for kicking people (newbie tutorial)

Shortcut for kicking people (newbie tutorial)

Postby lucasds12 » 17 Jun 2013, 01:34

Hello, before I show you this terrific shortcut for a kicking method I would like to thank GurkE for showing me this sort of method because I can inspire users with your awesome methods and I can learn from your commands meanwhile watching the command's coding and all that. Anyways, let's get started.
You know the original way of kicking a user with a message is:
Code: Select all
Command.all.Find("kick")Use(p, "");

Well, there is a different doing this process by simply doing:
Code: Select all
p.Kick("message");

Alright I'll show you a good example doing this process.
Player B used /troll.
Player B kicked ("TROLLOLOLOLOL")
For this to happen, you have to do the following method:

Code: Select all
p.Kick("TROLLOLOLOLOL");

Hope that explains it!
-Lucas
There is only one thing I do in life, that's contributing here.
lucasds12
 
Posts: 334
Joined: 17 Apr 2013, 16:17
Location: In the deep caves.

Re: Shortcut for kicking people (newbie tutorial)

Postby lucasds12 » 17 Jun 2013, 01:39

Now the banning version, as you know there is a existing method called:
Code: Select all
Command.all.Find("ban")Use(p, message)

Well as there is a shortcut for /kick, there's even a shortcut to BAN someone:
Code: Select all
p.Ban("message");

Works fine doesn't it, very handy just like the /kick version but this is the BAN version of this process.
-Lucas
There is only one thing I do in life, that's contributing here.
lucasds12
 
Posts: 334
Joined: 17 Apr 2013, 16:17
Location: In the deep caves.

Re: Shortcut for kicking people (newbie tutorial)

Postby ismellike » 17 Jun 2013, 01:43

I'm not too sure that p.Ban(string) is a thing :?
What a beast...
User avatar
ismellike
Coder
 
Posts: 731
Joined: 31 Oct 2012, 04:04
Location: Kansas

Re: Shortcut for kicking people (newbie tutorial)

Postby dryfly21 » 17 Jun 2013, 20:02

lol p.Ban("message"); doesnt exist in there ^.^ nice try though
dryfly21
 
Posts: 135
Joined: 07 Apr 2012, 03:27


Return to Drafts

Who is online

Users browsing this forum: No registered users and 3 guests

cron