Inactive [FUN/MECH] UVRay v0.4 - Burn players in sunlight [Multiworld, Permissions][1060]

Discussion in 'Inactive/Unsupported Plugins' started by Stushla, Aug 8, 2011.

  1. Offline

    Stushla

    UVRay - players get damage on 15 light level
    Version 0.4

    This plugin causes players to get damaged while exposed to a 15 light level. (the sun) It is more or less aimed at servers with a post-apocalyptic RP idea or at servers wanting players not to appear above ground. You can also use it to exile players underground thanks to permissions support.

    How to set up the multi-world (the server automatically generates world=true so if you don't use multi-world ignore it unless you use a differently named default world):
    1. open the worlds.dat in UVRay plugin folder
    2. put an entry like this in, <world name>=<true/false>
    3. run server
    Features:
    • Players get damaged in sunlight
    • Permissions support
    • Configurable
    • In-game commands to enable/disable/set damage
    • Multi-world support
    • Configurable protective armoring that prevents damage
    Download v0.5
    Source Code included with .jar

    Permission nodes/Commands:
    • UVRay.burn - Allows a player to burn. Given to non-OP players by default
    • UVRay.toggle - /uvraytoggle - Toggles the damage on/off. Given to OPs by default
    • UVRay.damage - /uvraydamage <number> - Sets the damage of the UVRays. Given to OPs by default. 1 = half-heart, 20 = insta-kill
    Changelog:
    Version 0.5 (courtesy of DigitalStorm)
    • The plugin checks if there are any blocks above the player's head and doesn't hurt them if there are
    Version 0.4

    • Updated multi-world support
    • Added configurable protective armour
    Version 0.3
    • Added multi-world support
    Version 0.2
    • Added commands/permission nodes, uvraytoggle & uvraydamage
    • Redone permission node for UVRay.burn (now default to true for non-OP)
    • Added configuration file
    Version 0.1
    • Plugin release
    Todo:
    • Make players literally get set on fire instead of just damaging them
    • Make animals burn
     
    Tanite and undeadmach1ne like this.
  2. Offline

    Sethimine

    Ahaha, you added my/your idea, thank you so much!

    ('tis makes me happy <.< )
     
  3. Offline

    Stushla

    I'm looking into this. Might be a simple problem of how I save the config.

    No problem :) was a good idea that was missing from the plugin

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

    Dimantio

  5. Offline

    Minnich

    does this work with permissions 3.1.6 because I am not able to get this thing to work and I really want to use it
     
  6. Offline

    kukelekuuk00

    how about adding a timer that after that timer is depleted the burning will set in and when you get in the shadow your timer will slowly go back to what it was
     
  7. Offline

    Stushla

    Sorry for the delay but have been having stuff to do in school (lots of tests >_>)

    TO be quite honest I don't know much about permissions, I never really liked them until they got integrated with Bukkit and so I've learnt to use the official plugin for my plugins. If anyone wants to make a Permissions 3.1.6 version feel free and I'll put it up here.


    As in you don't immediately get burnt but if you spend to much time in the sun then you will start burning? It's a good idea and I'll look into it. Haven't done anything to do with time yet so it may be a bit tricky for me but I'll see what I can do.
     
  8. Offline

    DigitalStorm

    Config options are poorly implemented. World names with spaces, and or apostrophes do not work, like "Banana's Land"
    Does work on 1060, but didn't test any commands.

    This doesn't work
    Banana's Land=true
     
  9. Offline

    kukelekuuk00

    exactly
     
  10. Offline

    Stushla

    I'm sorry but it's not my fault really :p I use a built in config thingy (java.util.Properties if you want to know) that I can't really edit and is limited in functionality. It's the only way I know to setup a config so until I learn a better way or someone else makes a better way it won't be fixed.
     
  11. Offline

    DigitalStorm

    Talk to the developer of Acidrain, he has a working configuration that works very similar to yours, but supports spaces, and apostrophes.
     
  12. Offline

    DigitalStorm

    After learning a bit more about programming over the past few days, I have discovered the cause of the problem for worlds with white-spaces not working. You are using the built in preferences for Java, which does not allow for white-spaces in the configuration file. To bypass this, I was able to successfully get a world named "test world" to run the UVRay by configuring it in the file as
    Code:
    test\u0020world=true

    This works because the properties loading reads \u0020 as a white-space character instead of just omitting it during loading.
    If you know of a simple way to implement it so that it takes spaces and not require the \u0020 for spaces, that would be great.

    I have an updated copy of your plugin, named it version 0.5 which has enhanced ability to check to make sure no blocks are above you, aka, outside. This makes it so things like glow-stone won't hurt you in caves.
     

    Attached Files:

    Last edited by a moderator: May 18, 2016
  13. Offline

    popa_qwerty

    OK with this could I make a glass tunnel without taking damage or will i still take damage
     
  14. Offline

    DigitalStorm

    You won't take damage.
     
  15. Offline

    Stushla

    I have updated my drop box with your version, will update the main page shorty, sorry about updates but I haven't really been able to pay much attention to this plugin as I am coding other programs, school and life stuffs. Thanks DigitalStorm for the update! Much appreciated.
     
  16. Offline

    Woolcity

    I like how the burning stops for you when you go to type or you hit esc. A nice feature. I won't lie.
     
  17. Offline

    Stushla

    If your being sarcastic then: Would you rather have a server that checks every player at every tick to see their light level? That would cause lag and make the plugin very inefficient on large servers. The way it works is it checks every time the player moves or looks around and it serves the same purpose. You get hurt for going in the sun.
     
  18. Offline

    freakyfranck

    I have some features idea that might be fun.

    -Have a way to toggle from human to undead. A kind off on/off sun burning. Maybe event give a bonus(health, speed etc) to the undead to compense.

    -Item to protect from the sun with right-click for a certain amount of time:
    Ex: brown mushroom for 3min sun protection

    Really good plugin for a hardcore survival plugin ;)
     
  19. Offline

    Woolcity

    Actually I was being serious. But thanks for the in-depth description of your reasoning.
     
  20. Very entertaining plugin, @Stushla ! May I be allowed to request a feature for an option to set a chance that players can be set on fire when they wandering in daylight? Would also be cool to add an option for this to ignore the protective gear!

    thx!
     
  21. Offline

    popa_qwerty

    Can this be updated to the latest recommended build because there is a bug that no mater if there is a if there is a block over head if I jump I will take damage
     
  22. Offline

    popa_qwerty

    Thanks for the great plugin I wish it will be updated be cause there are some bugs with the latest recommended build
     
  23. Offline

    1cec0ld


    What bugs are there? I was considering using this over SunBurn due to its permissions abilities... I only want one of my groups to take damage from light...
     
  24. Offline

    popa_qwerty

    Version v0.5 added a check to see if there is any block above the player which is broke you take damage any time you jump no mater if there is a block above you and at the time I used long glass tunnels to connect things which took a while to make and made it impossible to travel to other towns
     
  25. Offline

    1cec0ld

    lol so i have a couple issues with this.
    First, the damage only happens when I jump, or look around while standing on a ledge.
    Second, it ignores my permissions file and damages anyone (jumping or ledge standing) without care.

    CB 1240 (probably part of the issue) and EssentialsGroupManager+EssentialsGroupBridge. UVRay 0.5
    Show Spoiler
    Code:
      Earth:
        default: false
        permissions:
        - acidrain.immune
        - essentials.help
        - essentials.helpop
        - essentials.list
        - essentials.motd
        - essentials.protect.ownerinfo
        - essentials.rules
        - essentials.spawn
        - essentials.protect.damage.contact
        - essentials.protect.damage.creeper
        - essentials.protect.damage.drowning
        - essentials.protect.damage.fall
        - essentials.protect.damage.fire
        - essentials.protect.damage.fireball
        - essentials.protect.damage.lava
        - essentials.protect.damage.projectiles
        - essentials.protect.damage.tnt
        - essentials.protect.entitytarget.bypass
        - essentials.protect.pvp
        - UVRay.burn
        inheritance: []
        info:
          prefix: ''
          build: true
          suffix: ' of &2Earth'
      Fire:
        default: false
        permissions:
        - -uvray.burn
        - essentials.help
        - essentials.helpop
        - essentials.list
        - essentials.motd
        - essentials.protect.ownerinfo
        - essentials.rules
        - essentials.spawn
        - essentials.protect.damage.contact
        - essentials.protect.damage.creeper
        - essentials.protect.damage.drowning
        - essentials.protect.damage.fall
        - essentials.protect.damage.lightning
        - essentials.protect.damage.projectiles
        - essentials.protect.damage.suffocation
        - essentials.protect.damage.tnt
        - essentials.protect.entitytarget.bypass
        - essentials.protect.pvp
        inheritance: []
        info:
          prefix: ''
          build: true
          suffix: ' of &4Flame'
    
    

    As you can see, I even tried adding the negative node to prevent the burning. No help.
    Thanks for any input.
     
  26. Offline

    Sethimine

    When I use the UVRay.burn, it still burns everyone, including opped players. Did I do something wrong, or is it because of the bukkit build?
     
  27. Offline

    vsams14

    Will anyone be updating this to 1.2.3? The SunBurn Author seems to have stopped support for that plugin... (Maybe, or he's just taking a long break)
     
  28. Offline

    Gatt427

    Hey, i was wondering, could you send me the source code? I am very interested in your block detection tecnique.
    Im new to plugins and like your idea...

    hi, i installed this plugin and keep getting the error :

    Could not load 'plugins\UVRay.jar' in folder 'plugins' org.bukkit.plugin.InvalidPluginException: java.lang.NoClassDefFoundError: org/bukkit/event/player/PlayerListener

    HELPPPPPP

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

Share This Page