1. Welcome to the Brawl website! Feel free to look around our forums. Join our growing community by typing /register in-game!

New rule added that says macro's and fastplace is bannable.

Discussion in 'MC-WarZ' started by soSTARLY, Apr 5, 2014.

Thread Status:
Please be aware that this thread is more than 30 days old. Do not post unless the topic can still be discussed. Read more...
  1. soSTARLY

    soSTARLY Well-Known Member

    Joined:
    Aug 10, 2013
    Messages:
    411
    Ratings:
    +73
    so there's a new rule that says macro's and fastpalce is bannable. However, this is difficult to tell if someone is acutally fastplacing or macroing or just fast clicking. So today i have come on fourms to save you all, and put this rule into practical wide spread use.

    Code:
    ArrayList<Player> placerRight = new ArrayList<Player>();
    ArrayList<Player> placerLeft = new ArrayList<Player>();
    
    
    @EventHandler
    public void blockPlaceLeft(PlayerInteractEvent e){
      final Player player = e.getPlayer();
      if(e.getAction() == Action.LEFT_CLICK_AIR || e.getAction() == Action.LEFT_CLICK_BLOCK)
      if(!placerLeft.contains(player)){
       placerLeft.add(player);
     
       p.getServer().getScheduler().scheduleSyncDelayedTask(p, new Runnable() {
        public void run() {
         placerLeft.remove(player);
        }
        },(long) 0.50);
     
     
      }else{
       e.setCancelled(true);
       for(Player pl : Bukkit.getServer().getOnlinePlayers()){
        if(pl.isOp() || pl.hasPermission("anticheat.alert")){
        pl.sendMessage(ChatColor.RED + player.getName() + "is using fastplace");
        }
       }
      }
    }
    @EventHandler
    public void blockPlace(PlayerInteractEvent e){
      final Player player = e.getPlayer();
      if(e.getAction() == Action.RIGHT_CLICK_AIR || e.getAction() == Action.RIGHT_CLICK_BLOCK)
      if(!placerRight.contains(player)){
       placerRight.add(player);
     
       p.getServer().getScheduler().scheduleSyncDelayedTask(p, new Runnable() {
        public void run() {
         placerRight.remove(player);
        }
        },(long) 0.50);
     
     
      }else{
       e.setCancelled(true);
       for(Player pl : Bukkit.getServer().getOnlinePlayers()){
        if(pl.isOp() || pl.hasPermission("anticheat.alert")){
        pl.sendMessage(ChatColor.RED + player.getName() + "is using fastplace");
        }
       }
      }
    }
     
    • Like Like x 3
    • Agree Agree x 2
  2. iErebos

    iErebos Well-Known Member

    Joined:
    Nov 6, 2013
    Messages:
    515
    Ratings:
    +436
    Sure, why not?
     
  3. AcpSoldier

    AcpSoldier Well-Known Member

    Joined:
    Dec 15, 2013
    Messages:
    263
    Ratings:
    +99
    For anyone here that doesn't speak java, starly just wrote a plugin to check if a player places a block faster then he is supposed to(Fast place). And when a players does this, it announces the player who used fast place on the chat. Not only will it announce it, but it appears that it also cancels the event compelty making it impossible to use fast place.

    I haven't ran the code myself, but if this works starly is a WarZ hero.
     
    • Informative Informative x 2
    • Agree Agree x 1
  4. SheWasOnly12

    SheWasOnly12 Well-Known Member

    Joined:
    Aug 22, 2013
    Messages:
    1,718
    Ratings:
    +425
    I don't know how to java, I know how to VB only :v
     
  5. soSTARLY

    soSTARLY Well-Known Member

    Joined:
    Aug 10, 2013
    Messages:
    411
    Ratings:
    +73
    thank you thank you.
     
  6. AcpSoldier

    AcpSoldier Well-Known Member

    Joined:
    Dec 15, 2013
    Messages:
    263
    Ratings:
    +99
    This almost seems to good to be true. Why haven't the McBrawl devs done this yet? It's so simple. They should hire you. I just put it on my server then realized I can't test it without someone who has fast place. Have you tested it? Does this work with guns?
     
  7. Verasium

    Verasium Well-Known Member

    Joined:
    Sep 29, 2013
    Messages:
    1,903
    Ratings:
    +345
    This.. this is great! It would eliminate most hackers and make the game more legit... good job, Starly.
     
  8. soSTARLY

    soSTARLY Well-Known Member

    Joined:
    Aug 10, 2013
    Messages:
    411
    Ratings:
    +73
    yes i agree i am quite remarkable, and that i should be hired. Perhaps i should even get permanent mvp for this. And yes it does work, multiple people with fastplace tested it on my friends server
     
  9. AcpSoldier

    AcpSoldier Well-Known Member

    Joined:
    Dec 15, 2013
    Messages:
    263
    Ratings:
    +99
    ALL HAIL THE MIGHT STARLY! BANE OF ALL HACKERS! Contact an admin, this needs to be added to WarZ. Also Mc-War.
     
  10. soSTARLY

    soSTARLY Well-Known Member

    Joined:
    Aug 10, 2013
    Messages:
    411
    Ratings:
    +73
    yeah i hope hcickenputty or orange will see this and add it by today
     
  11. SONIC_ZEUS_222

    SONIC_ZEUS_222 Well-Known Member

    Joined:
    Feb 12, 2014
    Messages:
    116
    Ratings:
    +17
    If they add this warz would be much better. Might need some beta testing though, but what would the point of it saying it in chat do? Plus if your trying to report it you could use a hacked client and generate the message yourself.. I see the + and the - to this, maybe it would say the message in chat publicly the first time 1: "(so and so) is using fastplace, 2 warnings remain" 2: (so and so) is using fastplace, 1 hour temp ban next" or something idk :frowning:
     
  12. AcpSoldier

    AcpSoldier Well-Known Member

    Joined:
    Dec 15, 2013
    Messages:
    263
    Ratings:
    +99
    The plugin also adds each player to list called "placers". The admins could then look at this list and ban them manually. I like the idea of making it automatic though, I could make it so you get warnings and kicked and eventually banned.
     
  13. SONIC_ZEUS_222

    SONIC_ZEUS_222 Well-Known Member

    Joined:
    Feb 12, 2014
    Messages:
    116
    Ratings:
    +17
    It would need testing so it doesn't ban the wrong people..
     
    • Agree Agree x 1
  14. AcpSoldier

    AcpSoldier Well-Known Member

    Joined:
    Dec 15, 2013
    Messages:
    263
    Ratings:
    +99
    It would indeed need some testing, but it should be easily worked out. If I can get someone with fast place or macros on my dev server, I can get to work on making this better. Unless @soSTARLY wants to do it.
     
  15. 18kss

    18kss All is within

    Joined:
    Aug 10, 2013
    Messages:
    2,819
    Ratings:
    +1,913
    Discord:
    18kss#5951
    Thank you, good sir!

    Good job!
    Lol, that's great that it gets announced.
    Public humiliation!
     
    • Agree Agree x 1
  16. AcpSoldier

    AcpSoldier Well-Known Member

    Joined:
    Dec 15, 2013
    Messages:
    263
    Ratings:
    +99
    Not only will they be publicly humiliated but announcing it on the chat allows other players to take screenshots of chat showing who hacked. The only thing I'm worried about is the plugin not being full proof. It could announce that innocent players hacked.

    All I know is we need to get some hackers to start testing this plugin out. The sooner the better.
     
  17. soSTARLY

    soSTARLY Well-Known Member

    Joined:
    Aug 10, 2013
    Messages:
    411
    Ratings:
    +73
    Well..if you're playing legit, you probably don't have the capabilities to right click an ak 20+ times a second. And yeah if you wanted to test it on your dev server, you would have to add the plugin, and then find someone with fastplace, and have them fastplace with items in their hand..you'll see it works. and also, try to spam click as fast as you can, you won't set it off
     
  18. GreySwordz

    GreySwordz Well-Known Member

    Joined:
    Aug 3, 2013
    Messages:
    1,976
    Ratings:
    +322
    Please format the code

    It hurts
     
  19. Piky

    Piky Well-Known Member

    Joined:
    Oct 17, 2013
    Messages:
    3,646
    Ratings:
    +1,539
    This. I want this. This will get rid of all the hackers, for now of course. But this is great.
     
  20. MrCowlick

    MrCowlick Well-Known Member

    Joined:
    Aug 13, 2013
    Messages:
    3,490
    Ratings:
    +1,299
    Great idea, this should be added.
     
Loading...
Similar Threads Forum Date
General Rule Updates News & Announcements Jun 5, 2020
Please change the rule. Discussion Apr 29, 2020
Addressing the Continuous Rule Violation (CRV) ban... Discussion Apr 27, 2020
Idea Please update the rules list Capture the Flag Apr 11, 2020
Rules for Responding to Staff Applications Staff Applications Feb 10, 2020
Thread Status:
Please be aware that this thread is more than 30 days old. Do not post unless the topic can still be discussed. Read more...