Record a Player

Re: Record a Player

Postby Warren1001 » 21 Jul 2013, 18:08

Nvm, here's the /logs, but always make sure to put the k, you'll get an error if u put t or nothing (nothing will put both kick and tempban)
Spoiler:
Warren1001
 
Posts: 197
Joined: 08 Aug 2012, 03:50

Re: Record a Player

Postby 94ge7j998 » 21 Jul 2013, 22:32

Could I just use this to remove the command?
viewtopic.php?f=20&t=2103
94ge7j998
 
Posts: 64
Joined: 26 Oct 2011, 20:49

Re: Record a Player

Postby Warren1001 » 22 Jul 2013, 00:01

94ge7j998 wrote:Could I just use this to remove the command?
viewtopic.php?f=20&t=2103

Yes, that does the same thing as mine except it does it automatically. You have to delete the command every time you start up the server.
Warren1001
 
Posts: 197
Joined: 08 Aug 2012, 03:50

Re: Record a Player

Postby 94ge7j998 » 22 Jul 2013, 04:34

Thanks man works great. One bug though, when you try to kick yourself it says "you cannot kick yourself" like it should. But it still records that you kicked yourself in the logs.
94ge7j998
 
Posts: 64
Joined: 26 Oct 2011, 20:49

Re: Record a Player

Postby Leeizazombie » 22 Jul 2013, 04:54

To kick yourself in code use
Code: Select all
p.Kick
Owner of:
LeeIzaZombie Freebuild and Lava Survival V2 (Shut Down and updated)
LeeIzaZombie Survival (Comming back soon)

Contact:
Skype: leeizazombie
IRC: irc.geekshed.net, #leeizazombie, #mcclassichosting
User avatar
Leeizazombie
 
Posts: 536
Joined: 10 Jun 2013, 17:45
Location: Ireland.

Re: Record a Player

Postby 94ge7j998 » 22 Jul 2013, 05:27

I Don't want to kick myself lol. I'm just saying if someone where to try to kick themselves it records it in their kicks.
94ge7j998
 
Posts: 64
Joined: 26 Oct 2011, 20:49

Re: Record a Player

Postby Conor » 22 Jul 2013, 06:14

Warren1001 wrote:I've gotten kick done... still working on tempban, I'll provide the /logs (/records) command when I get tempban finished.
Remove kick:
Spoiler:

New kick:
Spoiler:

Be sure to add them both to the cmdautoload.txt, putting removekick first.


You can remove the old kick command in the Init method of the new kick command of the same name - it should still work fine.
Conor (Conanza121)
User avatar
Conor
Coder
 
Posts: 390
Joined: 10 Oct 2012, 21:36
Location: @21Conor

Re: Record a Player

Postby Warren1001 » 22 Jul 2013, 06:24

No, because you have to load the command. You can't load it if the default one is already loaded (I think).
Warren1001
 
Posts: 197
Joined: 08 Aug 2012, 03:50

Re: Record a Player

Postby Warren1001 » 22 Jul 2013, 06:34

94ge7j998 wrote:Thanks man works great. One bug though, when you try to kick yourself it says "you cannot kick yourself" like it should. But it still records that you kicked yourself in the logs.

Fixed:
Spoiler:
Warren1001
 
Posts: 197
Joined: 08 Aug 2012, 03:50

Re: Record a Player

Postby Conor » 22 Jul 2013, 06:50

Warren1001 wrote:No, because you have to load the command. You can't load it if the default one is already loaded (I think).


I know that. But I think the custom command is only added to the Command.all List of commands after the Init method is called. I'm not sure but I'm pretty sure I've done this in the past, so it could save you some time... just test it out.
Conor (Conanza121)
User avatar
Conor
Coder
 
Posts: 390
Joined: 10 Oct 2012, 21:36
Location: @21Conor

PreviousNext

Return to Requests for Addon

Who is online

Users browsing this forum: No registered users and 5 guests

cron