/autokick set (name) /autokick list /autokick remove

/autokick set (name) /autokick list /autokick remove

Postby Leeizazombie » 29 Jun 2013, 01:33

If this command can be created, you can save alot of worry and work! So since we are having, hacker problems, I got the idea were we can do /autokick (name) so that anytime (name) comes on, he/she is /kickbanned, now of course you can say that ban can stop it, but no, our servers are being accessed by an individual and i've confirmed that he logged in on the exact same ip as the ip was banned! so not to look for name+ip, but if the players name contains (name), autokick.
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: /autokick set (name) /autokick list /autokick remove

Postby HETAL » 29 Jun 2013, 01:40

First update your cmdblock cmd then do /cmdblock new water kickban (full username of who you want to ban) and place the block at the spawn.
YOU HAVENT SEEN THE LAST OF ME ISMELLIKE
HETAL
 
Posts: 397
Joined: 24 May 2013, 12:10

Re: /autokick set (name) /autokick list /autokick remove

Postby Leeizazombie » 29 Jun 2013, 01:47

That is a very good idea, we can use that bypass glitch, but is the water working now?
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: /autokick set (name) /autokick list /autokick remove

Postby HETAL » 29 Jun 2013, 02:37

It should work with the code you are using on your server remember to do /reveal after you are done placing the cmdblocks
YOU HAVENT SEEN THE LAST OF ME ISMELLIKE
HETAL
 
Posts: 397
Joined: 24 May 2013, 12:10

Re: /autokick set (name) /autokick list /autokick remove

Postby Leeizazombie » 29 Jun 2013, 04:21

I tested this on my local server with a dummy vasdev :P anyways, it bans him but it shows a message that he cant kick himself, however when someone joins, then he gets kicked.
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: /autokick set (name) /autokick list /autokick remove

Postby joppiesaus » 01 Jul 2013, 10:02

A clock with this should work better. Otherwise you must have a CMD block in every map.
Code: Select all
if (who == nameToBan)
{
    // Ban / kick code here
}


Good luck with it coders!
joppiesaus
 
Posts: 379
Joined: 20 Aug 2012, 07:28
Location: in a obsedian house, with glass in it so i can see the lava!

Re: /autokick set (name) /autokick list /autokick remove

Postby ismellike » 07 Jul 2013, 17:14

Alternatively, you can make a custom command.
You can use the Player.Joined event,and make a list of people who should never join.
The following is from my phone, so it will suck.

Code: Select all
using System.IO;
namespace MCDzienny
{
      public class Cmdautokick : Command
        {
          //add the general stuff
         public override void Init()
        {
         Player.Joined+=//event stuff(Join);
           if(!File.Exists(path))
               File.Create(path)
         }
         string path = "extra/autokick.txt";
          void Join(object sender, PlayerEventArgs e)
          {
              string noobs = File.ReadAllText(path);
               if(noobs.Contains(e.Player.name))
                    e.Player.kick("lol you suck");
          }
         public override void Use(string message, Player p)
         {
             if(message.Length==0)
               {
                  Help(p); return;
                }
              Player who = Player.Find(message);
               if(who==null)
               {
                p.SendMessage("Player not found... ");  return;
                 }
                 File.AppendAllText(path,who.name);
                 p.SendMessage("Player added to autokick list");
                 who.kick("lol you suck");
           }
         public override void Help(Player p)
          {
          p.SendMessage("/autokick [who] -- adds someone to autokick list");
         }
        }
}


I'm sure there is a few errors.
All that you need is the general stuff.
What a beast...
User avatar
ismellike
Coder
 
Posts: 731
Joined: 31 Oct 2012, 04:04
Location: Kansas

Re: /autokick set (name) /autokick list /autokick remove

Postby Leeizazombie » 11 Jul 2013, 15:47

Perfect :D and could you possibly make it read an online text? so that a few servers can read it?
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.


Return to Requests for Addon

Who is online

Users browsing this forum: No registered users and 4 guests

cron