[ADMIN] AntiShare v5.4.1 - Creative mode protection [BukkitDev]

Discussion in 'Plugin Releases' started by turt2live, Jan 25, 2012.

     
  1. Offline

    turt2live

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    [IMG]

    Thanks to Team Haven (HAVENmc.com) for the logo!

    Welcome to AntiShare, the plugin that stops creative mode players from sharing with survival mode players. Let's dive right in. If you want a more detailed description (and possibly more 'technical' sounding) visit the BukkitDev for AntiShare.

    AntiShare allows a large variety of customization when it comes to what you can stop creative players from doing. Everything from block placing and breaking to commands are able to be managed to make sure those creative players don't spread diamonds about your population.

    What else can it do you ask? Well, it can also make people in certain regions be a in a specific Game Mode and have a specific inventory to go along with it.

    Game Mode Inventories
    These separate a player's inventory into 2 parts: creative and survival. Once someone changes a Game Mode they no longer have the same inventory as AntiShare ensures that people cannot simply go into creative mode, stack up on diamonds, and go back to survival as if nothing happened.

    Block Tracking
    Block tracking is used to stop creative mode players from placing say diamond blocks and getting survival mode players to break them (or changing modes themselves). How this is tackled is anytime a creative mode player places a block it is logged and when a survival player tries to break it, they can't!

    GameMode Regions
    This is a way for you to have a region automatically change someone's inventory as well as force them to a specific gamemode. Perfect for server events where you want people to build (for example) a bunch of houses, but don't want them the be able to have creative mode or bring in their own items.

    Inventory Mirror
    On command you can view someone's inventory (no matter who) as they change it and edit it to your liking. This means that if you suspect turt2live (Hmm...) of cheating in diamonds, simply mirror their inventory, edit it to your liking, and watch as they do it again.

    Download and Other Stuff

    Everything you should need is at the BukkitDev page for AntiShare.


    [IMG]

    This post has been edited 86 times. It was last edited by turt2live Apr 10, 2013.
  2.  
  3. Offline

    EnigmA-X

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Yep, found another two.

    Picking up items is not allowed. But when I break something which I'm not allowed to pick up, I keep getting repeatedly warnings that I cannot pick it up. I cannot find any setting to switch it off...

    Also, when I do a /as reload some player get funky inventory switches (current selected tool replaced by an empty bucket for example, but different for each player).

    And another one:

    When I go from world to The Nether, my inventory is emptied. When I change gamemodes for several times and than go back to world, also all my inventory is empty (creative AND survival).

    This post has been edited 1 time. It was last edited by EnigmA-X Apr 26, 2012.
  4. Offline

    turt2live

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    All messages can be stopped by going into messages.yml and setting the value to "no message". This will silence that message.

    The /as reload is because to fix an inventory bug I had to use a "temporary" system for regions. This means that when you walk into a region your inventory is "temporary". On reload, AntiShare forces all players out of temporary then once it's re-enabled it pokes all players to check their regions and change inventories accordingly. So for the 5 seconds (max) AntiShare is reloading players have no inventory tracking and have their original inventory back.

    I can't replicate the world transfer issue, could it be your world manager plugin? (Also, double check that you have the world transfers setting in the config.yml to match what you please)
  5. Offline

    turt2live

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Version 3.2.2

    • Fixed right-click and use (again)
    • Fixed an issue with not having WorldEdit
    • Forced a backup of the config.yml before converting
    • Fixed command blocking and /gm
    • Fixed leaving regions not working correctly
    • Fixed a (weird) problem with players quitting
    Download: Here (not working? Try here)
  6. Offline

    Yodah

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Hello, Turt2live

    Im getting this issue very time i reload my server everybody's inventory switches to what they had like 40 mins ago, or it does this by its self very 30 mins, any clue what could be causing this? Also im using mysql for storage, could the problem be, that i switched from your previous Antishare plugin (the one with the really complicated configs) to this very easy to understand version? Love your plugin btw best thing to happen, since fire was discovered.
  7. Offline

    turt2live

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Weird....

    If I can ask you a few questions...
    1) Does it switch back after a few seconds
    2) Are the people affected in regions
    3) Are you using an inventory management plugin
    4) Have you tried 3.2.2
  8. Offline

    Yodah

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    1. No, it clears completely.
    2. No it does not switch back, it remains, and after so often it happens again. So it resets the items on peoples's inventory, but not whats in their chest. This does not effect me (Operator) or the Admins I exempt from Antishare, but it does effect the Moderators (they are not exempt from Antishare.)
    3. I'm not using a inventory management plugin
    4. Yes im using the 3.2.2, the new one. But this bug was also on the 3.2.0

    Also I uploaded a log file

    This post has been edited 2 times. It was last edited by Yodah Apr 27, 2012.
  9. Offline

    Yodah

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    log file

    in case u cant see the uploaded file, this is what the log looks like

    2012-04-26 16:03:34 [WARNING] [AntiShare] Creative block at location (-21, 53, 25, skyland) is not GRASS (found DIRT)

    2012-04-26 16:03:34 [WARNING] [AntiShare] Creative block at location (-26, 53, 17, skyland) is not GRASS (found DIRT)

    2012-04-26 16:03:34 [WARNING] [AntiShare] Creative block at location (974, 117, 1647, skyIsland) is not COBBLESTONE (found AIR)

    2012-04-26 16:03:34 [WARNING] [AntiShare] Creative block at location (947, 84, 1672, skyIsland) is not COBBLESTONE (found AIR)

    2012-04-26 16:03:34 [WARNING] [AntiShare] Creative block at location (962, 119, 1647, skyIsland) is not WOO (found AIR)

    2012-04-26 16:03:34 [WARNING] [AntiShare] Creative block at location (-414, 94, 20049, skyIsland) is not GLOWSTONE (found AIR)

    2012-04-26 16:03:34 [WARNING] [AntiShare] Creative block at location (-412, 94, 20046, skyIsland) is not GLOWSTONE (found AIR)

    2012-04-26 16:03:34 [WARNING] [AntiShare] Creative block at location (-26, 51, 26, skyland) is not GRASS (found DIRT)

    2012-04-26 16:03:34 [WARNING] [AntiShare] Creative block at location (974, 102, 1646, skyIsland) is not BOOKSHELF (found COBBLESTONE)

    2012-04-26 16:03:34 [WARNING] [AntiShare] Creative block at location (-24, 53, 17, skyland) is not GRASS (found DIRT)

    2012-04-26 16:03:34 [WARNING] [AntiShare] Creative block at location (-22, 53, 19, skyland) is not GRASS (found DIRT)

    2012-04-26 16:03:34 [WARNING] [AntiShare] Creative block at location (-23, 52, 25, skyland) is not GRASS (found DIRT)

    2012-04-26 16:03:34 [WARNING] [AntiShare] Creative block at location (-22, 52, 26, skyland) is not GRASS (found DIRT)

    2012-04-26 16:03:34 [WARNING] [AntiShare] Creative block at location (-1945, 100, 5, skyIsland) is not WOOD (found AIR)

    2012-04-26 16:03:34 [WARNING] [AntiShare] Creative block at location (-417, 92, 20037, skyIsland) is not SMOOTH_BRICK (found AIR)

    2012-04-26 16:03:34 [WARNING] [AntiShare] Creative block at location (-29, 52, 26, skyland) is not GRASS (found DIRT)

    2012-04-26 16:03:34 [WARNING] [AntiShare] Survival block at location (-1494, 101, 1493, skyIsland) is not LEAVES (found AIR)

    2012-04-26 16:03:34 [WARNING] [AntiShare] Survival block at location (-1493, 99, 1494, skyIsland) is not LEAVES (found AIR)

    2012-04-26 16:03:34 [WARNING] [AntiShare] Survival block at location (-1493, 100, 1494, skyIsland) is not LEAVES (found AIR)

    2012-04-26 16:03:34 [WARNING] [AntiShare] Survival block at location (-1492, 98, 1490, skyIsland) is not COBBLESTONE (found AIR)

    2012-04-26 16:03:34 [WARNING] [AntiShare] Survival block at location (-1493, 98, 1490, skyIsland) is not COBBLESTONE (found AIR)

    2012-04-26 16:03:34 [WARNING] [AntiShare] Survival block at location (-1009, 103, 7, skyIsland) is not OBSIDIAN (found AIR)

    2012-04-26 16:03:34 [WARNING] [AntiShare] Survival block at location (-1492, 100, 1490, skyIsland) is not COBBLESTONE (found AIR)

    2012-04-26 16:03:34 [WARNING] [AntiShare] Survival block at location (-1493, 99, 1495, skyIsland) is not LEAVES (found AIR)

    2012-04-26 16:03:34 [WARNING] [AntiShare] Survival block at location (-1491, 99, 1508, skyIsland) is not SAPLING (found AIR)

    2012-04-26 16:03:34 [WARNING] [AntiShare] Survival block at location (-1494, 98, 1500, skyIsland) is not SIGN_POST (found WALL_SIGN)

    2012-04-26 16:03:34 [INFO] [AntiShare] Reloading AntiShare...

    2012-04-26 16:03:34 [INFO] [AntiShare] Regions Loaded: 0

    2012-04-26 16:03:34 [SEVERE] [Metrics] http://metrics.griefcraft.com/report/OpenInv

    2012-04-26 16:03:34 [INFO] [AntiShare] Inventories loaded: 121

    2012-04-26 16:03:34 [INFO] [AntiShare] Reloaded

    This post has been edited 1 time. It was last edited by Yodah Apr 27, 2012.
  10. Offline

    turt2live

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Inventory issue is weird, I'll run some tests.

    As for the log: That only happens when someone manages to remove/change blocks without AntiShare being notified. The grass -> dirt is an interesting one and I'll create an exception for changes like it, but the others could really only be changed if they were removed during a reload or the file was manually edited. I'll see if I can create some sort of work around.
  11. Offline

    stabwounfz

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    is there any way to revert the user back to survival when leaving a creative area? let's say i want to have a 16x16 area inside my survival map just for creative. is it possible? maybe it's there but i can't find it?

    i also get this warning "You are in a region and therefore cannot change game modes"
  12. Offline

    turt2live

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Create a create region around the area you want to be creative. Here are the steps:
    1. Using WorldEdit, make the selection of where you want the region to be
    2. Type /as region creative <region name> where <region name> is a region name
    3. You're done!

    The warning you are getting, when does it happen?
  13. Offline

    stabwounfz

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    well i already have the creative region done which works, as soon as i enter the region, it changes my gm to creative. i was just wondering if there was a way to switch people back to survival as soon as they leave the creative area. i get the warning as soon as i leave the creative area which is inside my main main town.
  14. Offline

    turt2live

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    This was fixed in 3.2.2.

    There is a minor bug where if the server restarts then the players in regions will not change back and get the message.
  15. Offline

    stabwounfz

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    oh i see. i definitely downloaded 3.2.1, i'll try the most recent file and report back
  16. Offline

    turt2live

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Alright :)
  17. Offline

    Yodah

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    any solutions for this? this warning gets my log file really huge in just a short amount of time. is there something in the config i need to fix? maybe to shut off the warnings?

    >
    00:40:55 [WARNING] [AntiShare] Survival block at location (2499, 100, 984, skyIsland) is not DIRT (found GRASS)
    >
    00:40:55 [WARNING] [AntiShare] Survival block at location (2502, 100, 986, skyIsland) is not DIRT (found GRASS)
    >
    00:40:55 [WARNING] [AntiShare] Survival block at location (2501, 100, 985, skyIsland) is not DIRT (found GRASS)
    >
    00:40:55 [WARNING] [AntiShare] Survival block at location (2500, 100, 984, skyIsland) is not DIRT (found GRASS)
    >
    00:40:55 [WARNING] [AntiShare] Survival block at location (-114, 37, 80, skyland) is not CROPS (found AIR)
    >
    00:40:55 [WARNING] [AntiShare] Survival block at location (2501, 100, 1021, skyIsland) is not DIRT (found GRASS)
    >
    00:40:55 [WARNING] [AntiShare] Survival block at location (2502, 100, 1022, skyIsland) is not DIRT (found GRASS)
    >
    00:40:55 [WARNING] [AntiShare] Survival block at location (2503, 100, 1023, skyIsland) is not DIRT (found GRASS)
    >
    00:40:55 [WARNING] [AntiShare] Survival block at location (-114, 37, 79, skyland) is not CROPS (found AIR)
    >
    00:40:55 [WARNING] [AntiShare] Survival block at location (2441, 102, 995, skyIsland) is not WOOD (found AIR)
    >
    00:40:55 [INFO] [AntiShare] Reloading AntiShare...
    >
    00:40:55 [INFO] [AntiShare] Regions Loaded: 0
    >
    00:40:57 [INFO] [AntiShare] Inventories loaded: 5
    >
    00:40:57 [INFO] [AntiShare] Reloaded
  18. Offline

    turt2live

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    There is nothing that can be done about those messages other than avoid block changes.

    You could disable block tracking as that would help.
  19. Offline

    stabwounfz

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    it worked. now i have an issue with people using /spawn or /back and keeping the creative gm :(
  20. Offline

    turt2live

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    What do you mean?
  21. Offline

    stabwounfz

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    i blocked the commands with worldguard and now it's working fine. thanks for the great plugin
  22. Offline

    stabwounfz

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    when they use teleport command it doesn't revert them back to survival.
  23. Offline

    turt2live

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    It shouldn't?

    AntiShare only checks if the command is blocked. It doesn't handle every command for plugins.

    Whichever plugin uses your teleport command should handle Game Mode, AntiShare will see the Game Mode change and react, but it won't do it for the plugin.
  24. Offline

    stabwounfz

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    2 more things i found. if they're flying and the area has no walls, they can fly out of creative, losing flight then fly in as they're almost to the ground. when they die and respawn, they respawn with creative.

    if they logout inside the area and logback in and run out, creative mode won't switch back to survival
  25. Offline

    turt2live

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    The first issue I don't understand the problem... that sounds exactly how I intended.

    The second I said was a known bug. It was overlooked in testing and I apologize.
  26. Offline

    stabwounfz

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    when they respawn with creative at world spawn after dying, they can fly off and build god knows what elsewhere. Sorry for bringing all this up, i installed the plugin not long ago and i really like it and users in my server enjoy it a lot (since it's a survival server they can goof around inside protected creative areas building random stuff)
  27. Offline

    turt2live

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    I'll do some tests on that when I next can. It doesn't sound like an AntiShare problem though
  28. Offline

    turt2live

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Yea, looks like an AntiShare bug, I'll see what I can do :)
  29. Offline

    stabwounfz

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    i'll keep an eye open for an update, thanks!
  30. Offline

    ChaDonSom

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    I'm not entirely sure this is an AntiShare problem, but could you affirm it? When I made a new pvp world using MultiVerse, AntiShare was able to switch modes for everyone but me. Now, I have my own group, but I've tried pasting the default group's permissions onto my own, so I don't think it's a permissions problem. So, for others, it would say "Your inventory has been changed to pvp" and "Your inventory has been changed to SURVIVAL". For me, nothing. I can change my gamemode once I'm there, but the portal to the world is on the creative half of a world split, so I'd have to change gamemode every time I go. Also, even though everything points toward this new world being a pvp world, no one can hurt each other.
    Now, this sounds like a lot of different bugs, but I've exhausted my options and haven't solved any of these, so I decided to try ask you about it before I give up on it. Thanks for everything and for a great plugin! Love it!
  31. Offline

    turt2live

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Not quite sure what you are having issues with... but here is what I got:
    • You are not affected by AntiShare's world inventories
    • No one can be hit in a world
    The first one is likely a permissions issue, as there is no username exemption in AntiShare.
    As for the not being hit, look at the per-world configuration and disable the blocking of pvp in the world.
  32. Offline

    ChaDonSom

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Oh, I was going to add that I am using the Vault plugin, too, but I'm not even sure what Vault is... And thanks for the quick response! I was expecting a day or so of waiting!

    Okay, I'll try clear this up, even though it's a pretty complicated situation by itself. You are on the right track that I'm not affected by AntiShare's world inventories, but, from what I've tested, it's not the inventories I'm exempt from, but the gamemodes. The new world is set as a survival pvp world. When I teleport to it (through a Multiverse Portal on the creative side of a world split), I remain in creative mode. I AM able to switch my gamemode from there to survival mode, but the survival inventory for the pvp world (we'll call it "PvP") replaces the survival inventory for the normal world (the one with the world split). Now, I might have thought this was a permissions issue before, but since I've tested with all kinds of different permissions nodes and I've given myself the exact permissions of others that work... See, the people in one group are able to access this world fine and their inventory is swapped as well as their gamemode and everything. But I've removed my permissions and given myself their exact permissions and tested it that way, but it still didn't work.

    I think I AM subject to AntiShare's inventories, at least, the main world inventories, because it works with the world split. It'll switch my inventories and gamemodes fine on that world. But when I teleport to PvP, I remain in creative... and so on and so on. And there's no pvp in PvP, and you know the rest... I guess you shouldn't have to worry about those things, but just this one issue of my gamemode not switching.

    So, it works fine for everyone but me, but I'm as sure as I can be that it's not a permissions issue. I've even checked GroupManager's (I use it) groups.yml and users.yml for each world... Hey, I've practically checked every .yml in my server's directory! But hey, is there any sort of log file or report I can get you that would help? Or should I tell you all the plugins I'm using? I really hate to make this so hard for you!

Share This Page