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

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

  1. Offline

    turt2live Retired Staff

    [​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]
     
  2. Offline

    turt2live Retired Staff

    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.
     
  3. Offline

    stabwounfz

    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
     
  4. Offline

    turt2live Retired Staff

    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.
     
  5. Offline

    stabwounfz

    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)
     
  6. Offline

    turt2live Retired Staff

    I'll do some tests on that when I next can. It doesn't sound like an AntiShare problem though

    Yea, looks like an AntiShare bug, I'll see what I can do :)

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: May 23, 2016
  7. Offline

    stabwounfz

    i'll keep an eye open for an update, thanks!
     
  8. Offline

    ChaDonSom

    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!
     
  9. Offline

    turt2live Retired Staff

    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.
     
  10. Offline

    ChaDonSom

    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!
     
  11. Offline

    turt2live Retired Staff

    Type as debug into the console, pastebin that to me.

    (and because I don't like surprises myself...)

    The debug command will export all sorts of information to a debug file in the AntiShare directory (it will tell you where this is). The information included is all your plugins (and their versions), the AntiShare version, and all your settings (global and per world). Don't worry though, I've hardcoded it to censor your SQL settings (regardless if they are in use or not) as I have no use for your password and no one else here does either.

    From the sounds of it though it's a minor configuration conflict between MultiVerse and AntiShare, but the debug file will give me that extra detail to look at if there is no conflict and AntiShare is just being mean.
     
  12. Offline

    ChaDonSom

  13. Offline

    turt2live Retired Staff

    From the sounds of it MultiVerse is not changing your Game Mode when you enter the new world.

    AntiShare doesn't deal with worlds directly, instead it listens for Game Mode changes and does it's area checks (for regions and such) and chooses the world inventory that matches. But because plugins d weird things, does the issue happen when AntiShare is NOT on the server?

    The combat issue is a bug, I just looked at my code and it completly ignores world configurations (oops!). I'll be fixing this.
     
  14. Offline

    ChaDonSom

    Lol, really, I really did! I'm glad you were able to get at least something out of this! Um, yeah, as for this happening without AntiShare, let me check...

    Yep, still happens. It does exactly the same thing it did before, except now without the world split in the first world. The other users are switched to survival (if they were creative), but I am not.
     
  15. Offline

    turt2live Retired Staff

    Then take a look at MultiVerse's configuration/permissions. I don't know anything about MultiVerse other than it's a world manager plugin, so sadly I cannot help :(
     
  16. Offline

    ChaDonSom

    Thank you for everything! Once again, I love your plugin, especially with the new world split feature! Oh, also, would it be possible to split a world more than once? Like, have four quadrants?
     
  17. Offline

    turt2live Retired Staff

    Glad you like it :)

    The quadrants sounds interesting, I'll see what I can do :)
     
  18. Offline

    PSU4EverServer

    I have a question.

    I am currently running a Survival server on Minecraftserver.net,
    and would like a portion of my world turned into creative.
    This would allow players to go to the creative zone, and have unlimited blocks, but
    they won't be able to take anything from the creative server and craft/use it in the Survival area, right?
     
  19. Offline

    turt2live Retired Staff

    AntiShare's regions don't allow people to build from outside->in or inside->out (no building over borders), this also applies to other things like picking things up from outside the region, hitting things inside the region, and etc.
     
  20. Offline

    PSU4EverServer

    Thanks!

    Depending if the community is in favor of running a creative area on the Survival server, I will be running this.
    I just don't want my players going to the creative area, and then using things from the creative area in the Survival area of the server.
     
  21. Offline

    ChaDonSom

    Oh, I have another thing, sorry :(

    If I have a world split (in the main world, remember?), how would I go about making a creative zone on the survival side of the server? I've already got the region set, and, if I remember correctly, an error pops up in chat that says something about the player being in a region, so it can't change the gamemode.

    This isn't too pressing of a matter... it can wait till the next update or maybe even the update after that. It's a project I'm doing (that requires creative mode) that'll probably take a few years at least, so it'll be fine with waiting.

    Thanks a ton!

    P.S. Oh yeah! You were right. It was a Multiverse permission. Thanks for that! So now I just wait for AntiShare to be able to enable pvp in other worlds?
     
  22. Offline

    turt2live Retired Staff

    The way it's supposed to work is literally putting a region down in the world split, but I broke that. It's already fixed for the next release though :)

    And the next release also has the pvp-in-other-worlds thing fixed :)
     
  23. Offline

    BMX_ATVMAN14

    Its logs blocks placed (IN CREATIVE?) LOTS of LAG .
     
  24. Offline

    turt2live Retired Staff

    Disable it then.

    I get no measurable lag when I use the feature.
     
  25. Offline

    EnigmA-X

    It's me again. Still having issues with your plugin.

    Code:
    21:59:45 [WARNING] [AntiShare] Creative block at location (75, 86, -98, world) is not DIRT (found AIR)
    21:59:45 [WARNING] [AntiShare] Creative block at location (74, 88, -98, world) is not DIRT (found AIR)
    21:59:45 [WARNING] [AntiShare] Creative block at location (74, 102, -98, world) is not DIRT (found AIR)
    21:59:45 [WARNING] [AntiShare] Creative block at location (74, 132, -98, world) is not DIRT (found AIR)
    21:59:45 [WARNING] [AntiShare] Creative block at location (75, 92, -98, world) is not DIRT (found AIR)
    21:59:45 [WARNING] [AntiShare] Creative block at location (75, 125, -98, world) is not DIRT (found AIR)
    21:59:45 [WARNING] [AntiShare] Creative block at location (33, 64, -213, world) is not SOUL_SAND (found AIR)
    21:59:45 [INFO] [AntiShare] Reloading AntiShare...
    21:59:45 [INFO] [AntiShare] Regions Loaded: 0
    21:59:48 [INFO] [AntiShare] Inventories loaded: 14
    21:59:48 [INFO] [AntiShare] Reloaded
    
    The plugin does an automatic reload every hour. Every hour I get these kind of log warnings. Also, every hour the inventory of my players swap back as mentioned before.

    I've made a debug file for you, you can find it here.

    PS Why are you building for bukkit 1.2.5-r1.2 while this is not the recommended build?
     
  26. Offline

    turt2live Retired Staff

    Both confirmed bugs, both fixed for when I release 3.3.0.

    AntiShare is backwards compatible up to 1.1-R4, I just build for whatever the latest Beta is because the code AntiShare uses is not changed that often. If something plugin-breaking were to be changed in a beta release then I wouldn't publish a build for it publicly, instead I would wait until it becomes and RB.
     
  27. Offline

    ChaDonSom

    ... So, the issue of people losing their inventories every hour or so when AntiShare does the reload thing is fixed (in the next update)? Because that seems to be a problem too. But I think we'll be fine till your next update!
     
  28. Offline

    turt2live Retired Staff

    Yes. There was a critical error in saving stuff in order, and I fixed that in the latest dev builds.

    I hope to have a release out this week with a bunch of bug fixes (and new features!)
     
  29. Offline

    ChaDonSom

    New features! Yay! Well thanks for all the effort you put into this!
     
  30. Offline

    dwade20dwade

    Code:
    15:57:28 [SEVERE] Could not pass event EntityDamageByEntityEvent to AntiShare
    org.bukkit.event.EventException
            at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.ja
    va:303)
            at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.jav
    a:62)
            at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.j
    ava:459)
            at org.bukkit.craftbukkit.event.CraftEventFactory.callEntityDamageEvent(
    CraftEventFactory.java:360)
            at org.bukkit.craftbukkit.event.CraftEventFactory.handleEntityDamageEven
    t(CraftEventFactory.java:378)
            at net.minecraft.server.EntityLiving.damageEntity(EntityLiving.java:608)
     
            at net.minecraft.server.EntityMonster.damageEntity(EntityMonster.java:38
    )
            at net.minecraft.server.EntityHuman.attack(EntityHuman.java:750)
            at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:997)
            at net.minecraft.server.Packet7UseEntity.handle(SourceFile:33)
            at net.minecraft.server.NetworkManager.b(NetworkManager.java:229)
            at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:113)
            at net.minecraft.server.NetworkListenThread.a(NetworkListenThread.java:7
    8)
            at net.minecraft.server.MinecraftServer.w(MinecraftServer.java:551)
            at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:449)
            at net.minecraft.server.ThreadServerApplication.run(SourceFile:492)
    Caused by: java.lang.NoClassDefFoundError: com/turt2live/antishare/ASListener$1
            at com.turt2live.antishare.ASListener.onCombat(Unknown Source)
            at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
            at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
            at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
            at java.lang.reflect.Method.invoke(Unknown Source)
            at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.ja
    va:301)
            ... 15 more
    Why am i getting this?
     
  31. Offline

    hornetsnest

    Great Plugin i love it but some of my admins don't :( well what ever i have is set so my Admins can be in creative but only trusted admins can give blocks.:cool:
     

Share This Page