[INACTIVE][INFO] tooDark v2.2.3 - light level interpreter [400+]

Discussion in 'Inactive/Unsupported Plugins' started by ursa_arcadius, Feb 2, 2011.

  1. Offline

    ursa_arcadius

    tooDark - A light level plugin:
    Version: v2.2.3

    Displays and interprets the light level around the player.
    (Especially useful for determining if you cave is lit up enough)
    Use /autolight to automatically place a torch from your inventory on the ground if the light level is below 7.

    --Now supports Permissions--
    You no longer have to have permissions to use this plugin. If you have it installed, permissions will be used. Otherwise all players will have access to all commands. To install permissions please go here.

    --Current Note on Permissions--
    As of when I am writing this permissions 2.1 was not updated to work with the most recent version of CraftBukkit. This means that I did not actually test that this plugin works with permissions but I did test it with GroupManager and it worked fine there. If you experience problems, let me know please.

    Features:
    • Automatically light the ground below you when lightlevel is below 7 - toggleable
    • Display lowest light level within radius
    • Report if hostile mobs can spawn within the radius
    • Report if snow will melt within the radius
    • Report if trees/crops will grow within the radius
    • Report if friendly mobs can spawn within the radius
    • Supports Permissions (does not require it)
    • /Autolight does not place torches in the spawn protection area
    Usage:

    • /dark [radius] - Will tell you if mobs can spawn within the radius
    • /dark [radius] <snow|trees|animals> - Will tell you if snow will melt, or trees/crops will grow, or animals can spawn
    • /autolight - Toggle the automatic placement of torches whenever it is dark (if you have any in your inventory)
    Issues

    Please do not post bugs or feature requests in this thread! Discussion and simple questions are perfect to put in the forum thread. Issues should go in the issue tracker on github- after you've searched to see if it's already there.

    Issue Tracker on Github

    Before You Post an Issue

    • Please make sure you're running an up to date Craftbukkit. I test using jars from this common repository, and the most recent version I've tested with is always listed in the thread title.
    • If you're going to report a crash or bug, please check your server log for any errors or exceptions and paste them in the report.
    Future Plans:
    • Add configuration file for autolight threshold
    Installation:
    1. Copy Jar file to plugins folder
    2. Add tooDark.autolight and tooDark.dark to permissions config (if using permissions)
    Download Here
    Source Code
    Previous Releases: 2.2.2, 2.2.0

    Changelog:
    Show Spoiler

    Version 2.2.3
    • Permissions no longer required, but will be used if present
    • Torches will not be placed on snow, water, or other torches
    • Removed onPlayerCommand registration
    Version 2.2.2
    • /Autolight no longer remove halfsteps
    • /Autolight will not place torches on fences or steps
    • /Autolight will not place torches within spawn protection
    • Logging of commands to console
    Version 2.2.0
    • Torches are only placed once every .5 seconds to reduce duplicate torch placing in autolight
    • Torches are only placed if block player is on is not air
     
  2. Offline

    Kane

    Would it be possible at all to increase light levels or would that require a client mod? Be cool to increase torches to be brighter and such.
     
  3. Offline

    ursa_arcadius

    I don't believe so, at least I am not aware of any way to do that. If anyone does find a way though I can implement it.

    Edit: No, it is definitely not currently possible. I did submit a feature request on RedMine though, so we can see if they like the idea or not. If they do I will add it.
    --- merged: Feb 6, 2011 9:57 PM ---
    Updated, fixed radius. See detailed changelog in OP
     
  4. Offline

    Dreggor

    This is wild.. Love it. But I need permissions before I can put it on our server.
     
  5. Offline

    ursa_arcadius

    That is the next thing I will be working on. Hopefully by the end of the week.
     
  6. Just saying that you don't actually have instructions on how to use this...

    But assuming it works on a, one command, one check method (except the auto light). Is there a change you can add light monitoring or similar. So it sends a message if it's too dark, instead of placing a torch. Just makes it that little less automated.
     
  7. Offline

    ursa_arcadius

    Good point, I added instructions.
    I could change the autolight command to accept a switch for outputting a message or placing a torch. I will work on it.
    --- merged: Feb 9, 2011 3:26 AM ---
    @Dreggor - I have added permissions support.
    Let me know if there are any problems.
     
  8. Also, would it be possible to get an item which we can hit blocks with to find what light level it has? That would be really useful.
     
  9. Offline

    ursa_arcadius

    Yea, I can look into that as well. Not entirely sure how to do that but I am sure it can't be too hard.
     
  10. Offline

    Surgonan

    I just loaded the plugin and whenever i type /dark my server shuts down.. this is the only plugin i am using
     
  11. Offline

    ursa_arcadius

    What error are you getting?
    Are you using the latest version of the plugin?
    Are you using the latest version of craftbukkit?
    --- merged: Feb 10, 2011 1:33 AM ---
    Ah, I know the problem. You said it is the only plugin you are using. You have to have permissions installed for this plugin to work.
     
  12. Offline

    Surgonan

    ok i will try that...

    Here is also the error i am getting when loading my server (I edited out the IP)... not sure what it means:

    Code:
    2011-02-09 20:34:54 [INFO] Starting minecraft server version Beta 1.2_01
    2011-02-09 20:34:54 [INFO] Loading properties
    2011-02-09 20:34:54 [INFO] Starting Minecraft server on xxx.xxx.xxx.xxx:25565
    2011-02-09 20:34:54 [INFO] This server is running Craftbukkit version git-Bukkit
    -0.0.0-374-g27ef303-b288 (MC: 1.2_01)
    2011-02-09 20:34:54 [INFO] Preparing level "world"
    2011-02-09 20:34:54 [INFO] Preparing start region
    2011-02-09 20:34:55 [INFO] Preparing spawn area: 48%
    2011-02-09 20:34:56 [INFO] Preparing spawn area: 93%
    Feb 9, 2011 8:34:56 PM org.bukkit.craftbukkit.CraftServer loadPlugins
    SEVERE: com/nijiko/Messaging (Is it up to date?)
    java.lang.NoClassDefFoundError: com/nijiko/Messaging
            at com.bukkit.ursaarcadius.tooDark.tooDark.setupPermissions(tooDark.java
    :67)
            at com.bukkit.ursaarcadius.tooDark.tooDark.onEnable(tooDark.java:47)
            at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:135)
            at org.bukkit.plugin.java.JavaPluginLoader.enablePlugin(JavaPluginLoader
    .java:405)
            at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManage
    r.java:175)
            at org.bukkit.craftbukkit.CraftServer.loadPlugin(CraftServer.java:74)
            at org.bukkit.craftbukkit.CraftServer.loadPlugins(CraftServer.java:55)
            at net.minecraft.server.MinecraftServer.e(MinecraftServer.java:167)
            at net.minecraft.server.MinecraftServer.c(MinecraftServer.java:154)
            at net.minecraft.server.MinecraftServer.d(MinecraftServer.java:106)
            at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:202)
            at net.minecraft.server.ThreadServerApplication.run(SourceFile:512)
    Caused by: java.lang.ClassNotFoundException: com.nijiko.Messaging
            at java.net.URLClassLoader$1.run(Unknown Source)
            at java.security.AccessController.doPrivileged(Native Method)
            at java.net.URLClassLoader.findClass(Unknown Source)
            at org.bukkit.plugin.java.PluginClassLoader.findClass(PluginClassLoader.
    java:30)
            at java.lang.ClassLoader.loadClass(Unknown Source)
            at java.lang.ClassLoader.loadClass(Unknown Source)
            ... 12 more
    2011-02-09 20:34:56 [INFO] Done! For help, type "help" or "?"
    
     
  13. Offline

    ursa_arcadius

    Yea, basically it is saying it can not find the Permissions Plugin. Link to it in OP
     
  14. Offline

    Surgonan

    i got it working now thanks...

    kinda anoying to have to keep typing /dark 5 though

    I got a castle that is spawning mobs every now and them inside... from the outside its impenetrable
     
  15. Offline

    ursa_arcadius

    Do you have a suggestion on another way to find out?
     
  16. Offline

    Surgonan

    any way to program a sorta HUD u can toggle on that will display the current light level? u can always set the range in the properties file.

    Although the Autolight is helping me too
     
  17. Offline

    ursa_arcadius

    No that would have to be client side I believe, sorry.
     
  18. Offline

    Surgonan

    the HUD can update when u take a step... even if it was as simple as:

    [​IMG]
     
  19. Offline

    ursa_arcadius

    I am not sure what you mean. Do you any information on how to do this?
     
  20. Offline

    Surgonan

    not really... i have seen people with "mini maps" but it might be client side too
     
  21. Offline

    ursa_arcadius

    Yea, those are all client side too. I think the console is the best way. I am also going to look into adding some sort of stick that can be used as well but will have to look into how to do that.
     
  22. Offline

    Seta

    Love this idea!

    But would it be possible to build an "Sensor" like an Diamondblock with an Sign on it, to detect light level automatic and trigger some redstone with that? ^^ I know thats kind of more work, but this would be amazing!
     
  23. Offline

    ursa_arcadius

    I think that may be venturing a little too far from the original idea. I know that CraftBook will have a lightsensor of sorts though, you could check that out.
     
  24. Offline

    ursa_arcadius

    Updated to fix a couple problems, let me know if you guys find any issues.
     
  25. Offline

    lusid

    Access denied on downloading that 2.2.0 goodness. :)
     
  26. Offline

    ursa_arcadius

    I want to believe that is a temporary problem with GitHub because it says that it had 19 downloads already. I tried re-uploading it and it still has the same issue. I will check again in a few hours to see if it is resolved.
    --- merged: Feb 21, 2011 9:42 AM ---
    @lusid Yup, works now
     
  27. Offline

    jwideman

    Can this be made to not give the player a free torch with autolight? Perhaps be permission based?
     
  28. Offline

    Juze

    I'm going to try this, saves my effort with placing torches!

    This also reminds me, any possibility you could add define the light level to place a torch? Like, if there's light level 5 next to 6 and 7, place it there instead. Saves some torches, more economic.
     
  29. Offline

    ursa_arcadius

    It does not give them a free torch, just takes one out of their inventory and places it on the ground.

    I do plan to do that, Just have not gotten around to it yet. Working on a fairly large iconomy extension right now. Once that is a bit further along I will come back to this one.
     
  30. Offline

    jwideman

    If they only have 1 torch in their inventory, it does give them a free torch.
    Also, could this respect spawn's build protection? And does it respect WorldGuard regions?
    Further, it replaces stone slabs. This is not desirable.
     

Share This Page