[ADMN/MECH] MobToggle V1.0 - simple Monster/Animal On/Off [1060]

Discussion in 'Inactive/Unsupported Plugins' started by mctribble, Aug 10, 2011.

  1. Offline

    mctribble

    MobToggle has moved to the new bukkitdev system. As such, this thread
    will no longer be updated. Refer to the new project page here instead:
    http://dev.bukkit.org/server-mods/mobtoggle/


    MobToggle - simple Mob control:

    Version: v1.0

    By Request:

    MobToggle is a simple plugin that allows you to turn monsters and animals
    on and off using simple commands. It is permissions compatible, and
    allows you to control both monsters and animals separately. It supports
    multiworld, and will only modify the world you are standing in when
    you use it.

    When you turn Monsters or animals off, it automatically kills everything
    of that category on the map, and reports how many of them were killed.

    However, it will NOT prevent mobs from spawning by unnatural means, such
    as mob spawners or other plugins. I have done some testing and it seems
    to be working fine, but please do report any problems and I will try
    to fix them quickly.


    The commands are:

    /montoggle - turns monsters on/off
    /anitoggle - turns animals on/off
    /mobtoggle - turns monsters AND animals on/off.

    A note about /mobtoggle: it switches both of these independently of the
    state the other is in. This means that, for example, if monsters are off
    and animals are on, using /mobtoggle will turn monsters on and animals
    off!

    the permissions are as follows:

    MobToggle.MonToggle - allows /montoggle
    MobToggle.AniToggle - allows /anitoggle
    MobToggle.MobToggle - allows /mobtoggle
    MobToggle.* - allows all of the above.

    Each of these are given to OPs by default.

    Features:
    * Allows you to turn monsters on/off
    * Allows you to turn animals on/off
    * Still allows mob spawners and other plugins to function
    * When Monsters are off, health regenerates.

    download here: <Edit by Moderator: Redacted mediafire url>

    Changelog: Version 1.0
    * Initial Release
     
    Last edited by a moderator: Nov 13, 2016
  2. Offline

    Gamingshadow1

    Could you possibly make it so it would just spawn zombies and pigmen everywhere in the world and no other monster? I would like zombies in mass like a horde and pigmen and like 10% chance. So I am making a zombie survival server, if you could change this plugin to make my server work or link me to another plugin please.
     
  3. Offline

    mctribble

    well, specific mob control is a little outside the scope of this one, as its meant as a simple toggle. However, I think I found a couple others which may work for you:

    CustomDifficulty is capable of doing this, and an awful lot more. I have used it myself, and I think it should work, but configuration can be a bit confusing at first.

    WhichMobs looks like it may work, but it's rather outdated so I can't guarantee it still works, having not tried it.

    HeavenlyMob is even more outdated, but posts on the thread seem to indicate it is still working fine, and it probably offers more control than WhichMobs does.

    if none of these work, I suggest asking around bukkit discussion; people there are probably better informed than I am.
     
  4. Offline

    Gamingshadow1

    Thank you.
     
  5. Offline

    BlakeA

    hello, i have recently installed mobtoggle on my server. i disabled mobs and now i cant turn them back on... please help me.
     
  6. Offline

    mctribble

    That's strange. You should be able to just use the same command again to turn them back on, or at the very least, the effects shouldn't persist through a server reboot. Are you getting an error message?
     
  7. Offline

    BlakeA

    in the server log, it says the same message (BlakeA has enabled monsters on world) but, they do not spawn. although, there is one thing. health doesnt regenerate.

    Edit: forgot to add, no there are no errors at all
     
  8. Offline

    mctribble

    well, it shouldn't be regenerating health anyway, as it actually isn't designed to do that. This shouldn't be relevant, but do you have spawn-monsters=false in your server.properties file?
     
  9. Offline

    BlakeA

    no, its set to true. just checked
     
  10. Offline

    mctribble

    Hm... and I assume you're in a place where they should be spawning. What other plugins do you have, and have you updated to the latest build yet? a new build just released which might have broken it. I'll try to replicate on my end
     
  11. Offline

    BlakeA

    i have myself in a cave, and your probably right, im still on build 1000... ill switch and see what it does for me.
     
  12. Offline

    mctribble

    well, it was made for 1000, so I kind of doubt that would have broken it. I'm dont he new build and can't seem to reproduce it, so if that doesnt work you probably have something else conflicting with mine. Is there anything else that effects monster spawning?
     
  13. Offline

    BlakeA

    ill list the ones that have to do with mobs:

    Tribu
    MobBounty
    Mobdisguise
     
  14. Offline

    mctribble

    hm... it might be admin cmd:

    maybe try /moblimit none and see what happens?

    I use worldedit, so Know its not that, and I dont think mobdisguise or mobbounty affect spawning. It looks like tribu should only work if it's running... I assume you dont have a game going on that.

    also, do monsters come back if you simply delete mobtoggle? I dont know of anything in the code that would force it at a given setting, but it's worth a shot.
     
  15. Offline

    BlakeA

    no, tried deleting it, but i will try what you mentioned with Admincmd. ill let you know if it worked

    still not working.. i tried deleting it again but no hope. maybe i should run the server with no plugins and try?

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

    mctribble

    I might try that, yeah. Literally the only thing this does is change a single variable during runtime, so especially if you've deleted it I doubt the problem is here. I wish I could be more help than that :confused:
     
  17. Offline

    BlakeA

    thanks for your time. i will keep at it, i have players waiting
     
  18. Offline

    mctribble

    Alright. Good luck. If you have commandbook, I might also try /butcher: it kills everything, but also returns how many mobs it found to kill. That might help you debug things, especially if some joker spawned a hundred zombies somewhere thats mucking up everything else.
     
  19. Offline

    BlakeA

    ah ha! after i ran the server with no plugins, there was indeed mobs. so maybe i should add one plugin at a time and see which one isnt compatible? it would be very time consuming, but might work
     
  20. Offline

    mctribble

    that would probably be the only thing to do, unfortunately. If you find out which one isn't working let me know and i'll look into either fixing it or at least putting a note on the OP to warn others
     
  21. Offline

    mctribble

    minor update to the thread, but not the plugin itself:

    • updated build to 1060 after testing found no problems.
    • discovered that having monsters off regenerates health. That isn't something I expected to happen, though I think it's a nice bonus. Not sure if it did that before 1060 or not, but I added it to the feature list.
     
  22. Offline

    BerialFang

    question I was just wondering if this might help with a issue i am haveing basicly i have mobs well sometimes but no sheep or pigs would this plugin be able to help with this issue? From what I was told it is a bug in smp servers that sometimes things stop spawning
     
  23. Offline

    mctribble

    Never heard of that one before. You could try it, but I doubt it will help: all it actually does is change a single variable.

    It's essentially just changing spawn-monsters and/or spawn-animals at runtime.
     
  24. Offline

    CW934

    If I disable mobs using this plugin, and I have a region in WorldGuard with a flag for mob-spawning set to true, will mobs spawn only in that region? It would be cool if it worked. Thx
     
  25. Offline

    mctribble

    hm... probably not, as this basically just instructs the server not to spawn anything, anywhere. WorldGuard looks like its more designed to prevent spawns than to control them like that. You may be looking for Mobiile instead.
     
  26. Offline

    mctribble

  27. Offline

    kingwow34

    This is a great plugin! The thing is after i turned it on and off a few times it stopped showing on the game screen and it was only reading on the server log help? Advice? What should i do??
     
  28. Offline

    mctribble

    hm. That's... bizarre. Did you try just rebooting the server? I cant think of anything in my code that might cause that... it just uses the same function each time, but i'll try to reproduce tomorrow anyway and get back to you. In the meantime, is it just this plugin? could your issue be related to this bug report ?
     
  29. Offline

    mctribble

    I can now confirm that using the latest RB fixes this issue
     
  30. Offline

    QBcrusher

    hey i got a question. if you toggle animals, will it kill all pet wolves?
     

Share This Page