2.5latest2.5 - 1.13 Compatibility, Optimizations, and FixesAug 6, 2018 Note: Skipped v2.4 (it was a 1.13-only jar) While v2.3 was still able to turn lamps on in 1.13, it was far from functional. As such, this update was made to try and bring it up to 100% functionality. At one point I almost dropped backwards compatibility support, but I got it working and all is well for now (I hope x D) Testing done on v2.5: · 1.12.2 with no other plugins · 1.12.2 with WorldEdit 6.1.9 · 1.13 with no other plugins · 1.13 with WorldEdit 7.0.0 (No tests were made with NoCheatPlus) (The tested setups listed above should be 100% functional) Changes that I remember: · Fixed compatibility with WorldEdit 7.0.0 (they removed methods) · Fixed PowerlessLamps not loading correctly without WorldEdit installed (has it been broken this entire time? Woops) · Fixed sound enum compatibility for 1.13 (I wish they had compatibility for this like they did for Materials) · Optimized WorldEdit commands so that they loop less (it used to loop twice, now it loops once to find the lamps and then only loops over those lamps) · Hide WorldEdit commands from command help if it is not installed or the user doesn't have permission for them · Hide WorldEdit tab completions if it is not installed or the user doesn't have permission for them · Default /lamp command help to /lamp loc's help if WorldEdit is not installed or the user doesn't have permission for them Awesome Side-Effect of 1.13's New Code: Toggling a lamp that is next to another lamp will no longer turn it off : ) Also Pretty Cool Information: You can set any lamp on/off via the vanilla /setBlock command or by right-clicking (you don't even need this plugin to do it!). How? Grab a debug_stick via /minecraft:give and simply right-click the lamp! : D (you probably shouldn't let regular users have those though). For the command, use something like: /setblock ~ ~-1 ~ minecraft:redstone_lamp[lit=true] replace The debug_stick is likely as efficient as you can get, but it doesn't come with that lil clicking noise x D The /setblock command will cause adjacent lamps to turn off if they aren't powered.2.32.3 - /lamp xyz command and tab completionOct 23, 2017 You can now specify the xyz coordinates of a lamp to toggle it on or off. Using this command requires the permission node lamp.location. Syntax: /lamp loc [x] [y] [z] [on/off/toggle] <world> The world is usually optional unless you're using the command from the console. Relative coordinates are supported ( ex: ~10). Command blocks are supported. Command minecarts are supported. The command does NOT check if the sender can build there. This is more of a command block command anyways, not something for regular players to have >.< Example command (more examples when you use "/lamp loc"):2.22.2 - NoCheatPlus CompatibilityJul 7, 2017 If you do not use NoCheatPlus, this version is practically the same as v2.1. Changes: Added exemption to NCP's block-break checks during lamp toggling. Fixed a typo in the plugin.yml... soft-depend was supposed to be spelled as softdepend oops2.12.1 - Further physics event editsApr 11, 2017 Version 2.0's physics edit caused "//lamp on" to no longer turn all lamps on in a WorldEdit selection. This version should fix that. "//lamp toggle" doesn't seem to work correctly either when lamps are near each other. A solid flat wall of lamps should toggle nicely, and the same with standalone lamps. The command is probably a lost cause in regards to [irregularLampShapes/lampCubes], but it's still good if you like randomly toggling those lamps xD2.02.0 - Bugfix (improved BlockState workaround)Apr 11, 2017 The plugin will now completely avoid blocks with special BlockStates such as signs and chests when choosing a trigger block for a lamp. If a lamp is completely surrounded by special blocks, you cannot toggle it. If another lamp is selected due to special blocks being around the target lamp, the selected lamp will (unfortunately) turn off. If another valid non-lamp block is available, it will be preferred as the trigger instead of the lamp. The plugin's event listener has been slightly optimized to no longer create a new anonymous class instance. A check in the physics event has been changed to try and prevent nearby lamps that are off from mistakenly being toggled on when a lamp is toggled. Tested using Spigot 1.11.21.91.9 - MC 1.8 and MC 1.9 mergeMar 13, 2016 The purpose of this update was to make a PowerlessLamps version that is compatible with both the 1.8 and 1.9 versions of Spigot. If updating from PowerlessLamps v1.8 for Spigot 1.9, nothing has changed. If updating from PowerlessLamps v1.6 for Spigot 1.8, you will get the changes that were made in PowerlessLamps v1.7 and v1.8. This PowerlessLamps version was tested on a Spigot 1.9 server jar that was built today (March 12, 2016), and on a Spigot 1.8.8 server. If you experience a bug, please specify your server version and any other details you can give me about what the problem is.1.81.8 - Fix empty hand togglingMar 2, 2016 This version is only compatible with Spigot 1.9 and newer! Fixed lamp interaction. It wasn't allowing you to have an empty hand while toggling a lamp.1.71.7 - Minecraft 1.9 CompatibilityMar 1, 2016 This version is only compatible with Spigot 1.9 and newer! Sounds have been updated to match the new sound API changes in 1.9. RedstoneChangeEvent has been removed because it was unnecessary. PlayerInteractEvent lamp interactions have been limited to once per tick to restore functionality. Interaction requirements have been loosened. You may now toggle lamps with your hand as long as you aren't holding a block in either your left or right hand.1.61.6 - Code Improvement and MobArena BugfixFeb 8, 2016 This update was created with the purpose of fixing compatibility with MobArenas. The old build-checking code would fire its own BlockPlaceEvent to see if a user could toggle a lamp (before it even checked if the block was a lamp). MobArena would see the event for all blocks that were right-clicked and add them to its own block-change list for restoration purposes (only if the arena had its 'protect' setting set to true). When an arena ended, it would set all right-clicked blocks to air. To fix this issue, PowerlessLamps will now use the BlockBreakEvent instead of BlockPlaceEvent, and it will only trigger for redstone lamps.1.51.5 - WorldEdit + BugfixJun 13, 2015 This update was made due to a bug that I randomly discovered last night. The bug occurs if you place a redstone lamp above a block that has an inventory (chest/dispenser/hopper/etc) and then toggle it. When you do, the contents of the chest explode out from it, leaving the inventory empty. This occurs in all PowerlessLamps versions (1.0~1.4) and it is fixed in this release (1.5). Along with that bugfix, I figured I'd add commands that affect lamps inside a WorldEdit selection as Roissica requested in the discussion page. As a result of the changes, lamps that are stacked on top of each other can be toggled in any order instead of top-to-bottom. New commands: /lamp on <optionalPercentage> /lamp off <optionalPercentage> /lamp [inverse/toggle] <optionalPercentage> New permission node: lamp.worldEdit1.41.4 - Sound FixMay 25, 2015 v1.4 fixes a minor bug from v1.3 that caused the No-Toggle sound to play even if the clicked block wasn't a redstone lamp.1.31.3 - Build Region CheckingMay 25, 2015 PowerlessLamps v1.3 adds a check to see if the player can build where the lamp is at before toggling it. It is NOT dependent on WorldGuard regions. Any anti-grief plugin that uses the BlockPlaceEvent event should work correctly with the lamp-toggle build checking.1.2May 23, 2015 1.1May 23, 2015 1.0May 23, 2015
Similar projects
Plugin →Let Me Despawn
Improves performance by tweaking mob despawn rules. Say bye to pesky unintentional persistent mobs.
26.2MSueta
JourneyMap
Real-time map used for mapping in-game or your browser as you explore.
14.7MSueta
Emotecraft
Create your own emotes in Minecraft.
7.9MSueta
Simple Tpa
A simple tpa plugin which sends requests
5.4MSueta
Common Network
Forge and Fabric Unified Networking Solution
4.7MSueta
Set Home
A lightweight plugin for players to set their homes.
3.8MSueta