[ADMN/SEC] GuestPrev v1.5 - AntiGrief Guest Manager [1.3.1-R2.0]

Discussion in 'Inactive/Unsupported Plugins' started by SunShe, Feb 24, 2011.

  1. Offline

    SunShe

    [ADMN/SEC] GuestPrev v1.5a - AntiGrief Guest Manager [1.3.1-R2.0]

    GuestPrev - AntiGrief Guest Manager:
    Version: v1.5a

    GuestPrev allows you to manipulate your guest accesses and events,
    it protects your server against griefers or unknown players.

    Feel free to open your server to the public without having to worry about griefers.

    [​IMG]
    -
    Simple, Light, easy.
    No Permissions system required. (But supported)

    Features: Prevents guests from the following...
    • Placing, Breaking, or Interacting with Blocks
    • Using, Destroying, or Moving Boats/Mine Carts
    • Picking Up or Drop Items (Option to Authorize Certain Items)
    • Opening Chests, Furnaces, or Dispensers
    • Interactions with Doors, Levers, Buttons, or Pressure Plates.
    • Trampling wheat and using ladders.
    • Creepers explosions on guests.
    • Workbench Use (Option to Authorize Use)
    • Attacking types of animals/monsters.
    • Exploring the unknown world not generated. (Preventing from increase your file map size.)
    Additional Features:
    • Auto-locks Guest Inventory Changes
    • Stops Players From Using Blocks to Climb Over Walls
    • Enable or Disable Guest Chat, Guest Server Access.
    • Send a private message or kick all guests. (for servers overloaded of guests)
    • Optional/editable Every Notify Messages for guests.
    • Configurable guest interactions.
    • Can make virtual walls for restrict your guests at some ways.
    • Admin Command Tools (Teleport,Kick,Ban,Mute,Froze,Etc...)
    • Set a max amount of online guests in same time.
    • Reserve slots for members.
    • Can disable other plugins commands access.
    • You can optionally set a chat-prefix for recognize who are a guest.
    • A system who logging the players activities. (First Join, Latest Connected/Disconnected)
    • Make your Guests (Spectators) invincible.
    DOWNLOAD: Private now, you can PM me if intersting...
    _
     
    thecoolwolf, Tealk, kahlilnc and 6 others like this.
  2. Offline

    SunShe

    Yea i have some difficulty with this event, bukkit is bad codded at this way. he not reach to hook the target if they have 2 creepers or if you just connect at the server and etc... i looking to fix it i have some ideas for that.

    I haven't this warning on my #493 Version.

    It's what it doing. intact want mean "interacting" and not "build/destroy", in this case for pressures it's triggering yea. ( "interactpressures" was "allowpressures" in the old version but as been changed for exactly the reason that you said )
    --- merged: Mar 5, 2011 2:09 PM ---
    but i work on big changes for this plugin. lol again and again, but it's for the new name of it ^^. like that can take some time to code it and like i have not always the time to work on it, i will make a web page for showing "Progresses"
     
  3. Offline

    Poinball

    Same error :

    [SEVERE] Could not pass event ENTITY_TARGET to GuestPrev
    java.lang.ClassCastException: org.bukkit.craftbukkit.entity.CraftCreeper cannot be cast to org.bukkit.entity.Player
    at com.bukkit.sunshe.GuestPrev.GuestPrevEntityListener.onEntityTarget(GuestPrevEntityListener.java:20)
    at org.bukkit.plugin.java.JavaPluginLoader$43.execute(JavaPluginLoader.java:344)
    at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:59)
    at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:225)
    at net.minecraft.server.EntityMonster.a(EntityMonster.java:58)
    at net.minecraft.server.Explosion.a(Explosion.java:152)
    at net.minecraft.server.World.a(World.java:1244)
    at net.minecraft.server.WorldServer.a(WorldServer.java:115)
    at net.minecraft.server.EntityCreeper.a(EntityCreeper.java:94)
    at net.minecraft.server.EntityCreature.c_(EntityCreature.java:63)
    at net.minecraft.server.EntityLiving.q(EntityLiving.java:649)
    at net.minecraft.server.EntityMonster.q(EntityMonster.java:30)
    at net.minecraft.server.EntityLiving.f_(EntityLiving.java:231)
    at net.minecraft.server.EntityMonster.f_(EntityMonster.java:34)
    at net.minecraft.server.EntityCreeper.f_(EntityCreeper.java:51)
    at net.minecraft.server.World.a(World.java:1011)
    at net.minecraft.server.WorldServer.a(WorldServer.java:53)
    at net.minecraft.server.World.f(World.java:993)
    at net.minecraft.server.World.d(World.java:970)
    at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:354)
    at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:272)
    at net.minecraft.server.ThreadServerApplication.run(SourceFile:366)
     
  4. Offline

    Tealk

    Hi its possible to short the commands
    eg: /gp
    and add a mysql support?
     
  5. Offline

    SunShe

    On the first post,
    For the creeper error (ENTITY_TARGET), at this time don't carry about it, it's not really grave, it will be fixed.
     
  6. Offline

    Tealk

    oh ok sorry for the question, i havent see :p
    and is a mysql support possible?
     
  7. Offline

    SunShe

    I don't know and are not sure because i not like mysql [​IMG]
    But i still can invite you to see progresses here...
     
  8. Offline

    Lucy

    Here's the full error.

     
  9. Offline

    SunShe

    it's not my plugin, have you updated your "Permissions" ?
     
  10. Offline

    Lucy

    Well it seems to be coming from interplay between your plugin and Permissions, and yes, I have updated Permissions, on the same day that I updated the server and your plugin. I'll do it again though, just to be sure.
     
  11. Offline

    SunShe

    I try to work my best fast to release the version 1.4 as soon as possible, but i force myself to check that everything work without any console error and best optimised for performences. There are a lot of changes, you can see on the first post. I'm sorry to keep you waiting.
     
  12. Offline

    acegiak

    Hey SunShe, how does this handle entitydamage events? Sol is getting a bug in NpcSpirit where guests are able to kill npcs which would normally be no big deal because they'd respawn but if it's a guest doing the killing then something weird is apparently happening stopping the npc from respawning.
    My entitylistener has this method for handling the damage:

    Code:
    public void onEntityDamage(EntityDamageEvent presub) {
    
            if (presub instanceof EntityDamageByEntityEvent){
                EntityDamageByEntityEvent event = (EntityDamageByEntityEvent)presub;
    
                if (event.getEntity() instanceof HumanEntity) {
                    BasicHumanNpc npc = parent.smanager.getNpcFromEntity(event.getEntity());
                    NpcSoul soul = parent.smanager.getBlockSoul(parent.smanager.getHomeFromEntity(event.getEntity()));
                    //soul.lookat(event.getDamager());
                    if (npc != null && event.getDamager() instanceof Player) {
                        Player p = (Player) event.getDamager();
                        int lefthealth = npc.getBukkitEntity().getHealth()-event.getDamage();
                        if(lefthealth < 0){
                            lefthealth =0;
                        }else if (lefthealth > 20){
                            lefthealth = 20;
                        }
                        if(lefthealth == 0){
                            p.sendMessage("You killed "+npc.getName()+"!");
                            parent.smanager.killbody(parent.smanager.getHomeFromEntity(event.getEntity()));
                        }
                        npc.getBukkitEntity().setHealth(lefthealth);
    
                        p.sendMessage("<" + npc.getName() + "("+Integer.toString(npc.getBukkitEntity().getHealth())+")>"+soul.getdammess());
                        event.setCancelled(true);
    
                    }
    
                }
            }
        }
    Can you see any weird conflicts?
     
  13. Offline

    SunShe

    you talking about guest from my plugin ?
    im not sure to understand what you trying to mean... You said sometime your NPC wont respawn?
    --- merged: Mar 7, 2011 12:35 AM ---
    Why you just not write that?
    npc.getBukkitEntity().setHealth(20);

    Why you make some health test if you wont your NPC die?
    --- merged: Mar 7, 2011 12:38 AM ---
    you need maybe to make a condition to check if the player attacker are yes or not allowed.
     
  14. Offline

    Hapistorique

    Can you re-upload it on something else than Free? It sucks, it's down now

    Do this work with GroupManager instead of Permissions ? :/
     
  15. Offline

    MacG32

    I would like to test your plugin, but the download links aren't working. This is the error: Parse error: syntax error, unexpected '?' in /mnt/156/sda/9/1/nezoserver/get.php on line 60. This looks like a wonderful plugin that no Admin should be without. [​IMG]
     
  16. Offline

    SunShe

    Yea so sorry, i meet some problems with the hoster, links will be back soon.
    --- merged: Mar 7, 2011 10:27 PM ---
    Well, done. Links is back. welcome, i invite you by the way to check the progresses page, this plugin will be really more awesome at 1.4+.
     
  17. Offline

    MacG32

    Thank you. I'll be looking forward to it. :cool:
    [MERGETIME="1299583829"][/MERGETIME]
    Found a little problem. When a guest destroys a sign with words on it, the sign reappears blank. Other than that, this plugin works like a charm. :D
     
  18. Offline

    Tealk

  19. Offline

    yeahMan

    possible to get a ./spawn ./home ./tp block on this plugin? I'd like to use it to jail bad players as well since the latest jail plugin and essentialsban isn't working with me :(
     
  20. Offline

    SunShe

    i need to work fast for done the GuestPrev 1.4 for the new Craftbukkit #522, because i dont have anymore the 1.3 and currently impossible to make a release.

    And for /spawn /home and etc... is not appropriate to my plugin what i think.

    @EvilSeph Please give me one more day. :p I promess a nice result. ( Ok stop leeching )
    [MERGETIME="1299650858"][/MERGETIME]
    Tomorow i think it will ready! ( in ~14-15 hours )
     
  21. Offline

    yeahMan

    I meant blocking anyone from using teleporting/warping/spawning while not on the "whitelist/reservelist/guestprevlist".
    EXAMPLE:
    player33 enter game.
    /guestprev add player33. *added!*
    player33 is a bad player and griefs stuff.
    /guesprev remove player33. Now player33 can't build.
    ____________What I'd like is to also remove his tp privileges so he can't warp around :)
    AKA - I'd throw him in a "jail" until i'm ready to deal with him instead of banning him right away.

    I realize this is asking for something off-key from the guestprev intentions but I'd love this feature! Either way, i'll continue to support the plugin and continue to use it! Thanks.
     
  22. Offline

    Michael314

    Pretty sure that's just a client issue (Because the plugin isn't undoing destruction, it's stopping it before it happens - or, perhaps more accurately, stops it as it's trying to happen)

    If you reconnect to the server the sign should have the original text.
     
  23. Offline

    Tealk

    doesnt run with Permissions 2.5.4
     
  24. Offline

    Hoddie54

    Code:
    2011-03-09 11:41:33 [SEVERE] Could not pass event ENTITY_TARGET to GuestPrev
    java.lang.ClassCastException: org.bukkit.craftbukkit.entity.CraftZombie cannot be cast to org.bukkit.entity.Player
    at com.bukkit.sunshe.GuestPrev.GuestPrevEntityListener.onEntityTarget(GuestPrevEntityListener.java:18)
    at org.bukkit.plugin.java.JavaPluginLoader$43.execute(JavaPluginLoader.java:344)
    at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:59)
    at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:225)
    at net.minecraft.server.EntityMonster.a(EntityMonster.java:58)
    at net.minecraft.server.EntityMonster.a(EntityMonster.java:95)
    at net.minecraft.server.EntityCreature.c_(EntityCreature.java:63)
    at net.minecraft.server.EntityLiving.q(EntityLiving.java:649)
    at net.minecraft.server.EntityMonster.q(EntityMonster.java:30)
    at net.minecraft.server.EntityZombie.q(EntityZombie.java:35)
    at net.minecraft.server.EntityLiving.f_(EntityLiving.java:231)
    at net.minecraft.server.EntityMonster.f_(EntityMonster.java:34)
    at net.minecraft.server.World.a(World.java:1011)
    at net.minecraft.server.WorldServer.a(WorldServer.java:53)
    at net.minecraft.server.World.f(World.java:993)
    at net.minecraft.server.World.d(World.java:970)
    at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:354)
    at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:272)
    at net.minecraft.server.ThreadServerApplication.run(SourceFile:366)
    CB: 493. CentOS.
     
  25. Offline

    Ma3x

    I don't understand how to use this.
    I put it in my plugins folder, my properties look like that:

    Code:
    ##
    
    # Message settings - Notifications players will relieve.
    
    # Leave these settings blank to disable player notifications.
    
    # Use +name to display the players name in the notification.
    
    ##
    
    title-notify=GuestPrev Notify\:
    
    prev-message=Sorry, guests are not allowed to perform this action\!
    
    join-message=Hello +name, you are currently registered as guest. To gain build rights, ask for a staff member or visit our website.
    
    chat-message=Chat is currently disabled for guests.
    
    kick-message=Guests are currently not being accepted.
     
    ##
    
    # Admin settings
    
    ##
    
    admins=my username
    
    opasadmins=false
    
    usebuild=true
     
    ##
    
    # Related settings (preventcreepers prevent explosions on guests, but keeps the damage)
    
    ##
    
    preventcreepers=true
    
    rejectguests=false
    
    disabledchat=false
     
    ##
    
    # Guest settings (alloweditem is ONLY for items)
    
    #
    
    # Example settings
    
    # alloweditem=334,319,298,299,300,301 - Lets Players use raw pork, leather, and leather armor
    
    # workbench=true - Give guest the ability use a bench to craft armor from collected leather
    
    ##
    
    alloweditem=
    
    workbench=false
    
    interactbuttons=false
    
    interactlevers=false
    
    interactpressures=false
    
    opendoors=false
    
    enterboats=false
    
    enterminecarts=false
    When a player logs in, he can destroy whatever he wants without me putting him on the authorisation list?!
    What am I doing wrong? Do I have to make a new group in the Permissions plugin or something?
    Please help me!
     
  26. Offline

    SunShe

    With the GuestPrev 1.4 i will make a wiki pages to explain all. for your error Hoddie54, it's fixed at 1.4.
    Tealk for permissions 2.5.4, GuestPrev 1.4 will be updated to it.
    And for yeahMan "accesscommands=false/true" will make your happiness.
     
  27. Offline

    Ma3x

    Please answer my question!
     
  28. Offline

    SweetCraft Girl

    Hi SunShe! Great plug-in. We have been looking for a plug-in that actually works and would allow us to keep our server in OFFLINE mode while still avoiding the asshats would love to login with an admin name and wreck things. However, names are not entirely safe alone and password checking is something i am clueless of, so, do you think it would be possible to have the guest list do some sort of check against IP address, like for the admins? So, beside the admin name in the guestprev.properties it would say: sweetcraftgirl:10.1.10.* This way in offline mode a guest cant login with an admin name if the ip doesnt match? I guess its like a mini-white list?

    Sorry about asking you take on yet more work. We are just trying to figure out how to stay in OFFLINE mode with a security/guest system that actually works or at least prevents Ops/Admins from being duped.

    Thanks for any consideration you give this, I appreciate your just reading it :)


    @ Max
    Wow Max, Sun has sooooooo many posts in this thread and seems thus far to be extremely responsive to peoples posts when she can be.
    jeeze, a little patience and maybe she will be able to CLOSE THE WINDOW SHE IS CODING IN and respond to your question in her down time of trying to crank out a plug-in for the grateful part of the community.

    Sheesh. Have patience, will travel.
     
  29. Offline

    Michael314

    You probably want usebuild=false, otherwise the plugin uses the build: field in the permissions file rather than its own list.
     
  30. Offline

    Ma3x

    That's what I want but when I add him to the list I want him to be able to build is this possible if yes how?!
     
  31. Offline

    Michael314

    But online mode /is/ the security system that does that.
     

Share This Page