CCTV Camera
^(Click me to donate!)^
CCTV Camera
Current Version - Version 2.8
For CraftBukkit - 1.4.7-R1.0
Expected revival starting by July, 2014. A complete recode using a more efficient method will occur, addressing all reported bugs. Expect a much more efficient version with minimal bugs. Expected to be finished August, 2014
Add cameras to monitor your server!
No Client-side add-ons needed!(No Spout)
What is it?
CCTV Cameras is a plugin developed by sayaad as an attempt to fulfil this plugin requests.
How Does it work?
This goes by the workaround that dibujaron taught of. That is, you create a screen and a camera then rightclick the screen to teleport to the respective camera.
There are 2 types of cameras :
- Dispenser Cameras - These use the dispenser block (because they look like cameras to us) as the camera screen. The direction the dispenser is faceing when you teleport to it. If you attempt to look to a diffrent side, you get teleported to the correct side and, for both types of cameras, if you attempt to move/break blocks/interact/hurt players, the action in undone.
- 360 Cameras - Unlike the dispenser cameras, these cameras can be any block type specified in the config and allows for a 360 view of the environment.
When you teleport to a camera you cannot interact with the environment. You will be inside of a glass block which gives a nice black block outline as to a real camera screen.
Features
- No Spout Needed!
- Configurable whether only the player created the camera-screen links can use them. Configurable camera block ids and screen block ids.
- Multi world support (screens can be in different world than cameras)
- Ability for players to see who is in a camera while viewing them.
- Creation wizard to avoid misconfigurations.
Commands and How To's
<> = required [] = optional
- /cctv create camera <camera name> - Enter camera creation mode. USE THIS COMMAND FIRST. After entering the command, left click your eligible camera block (default : dispensers, sponges, obsidian). If you screw up, the plugin will detect it.
- /cctv create screen <screen name> - Enter screen creation mode. USE THIS COMMAND AFTER CREATING CAMERA. Right-click eligible screen block to create a screen (default : Black wool, Grey Wool).
- /cctv link [camera name] [screen name] - Links the two. Use this AFTER you entered the above two commands. ^
After you link the two, you may right click the screen to teleport to the camera. When you are in the camera, you rightclick to exit it.
- /cctv modify [param] [true | false] - modifies the camera not linked yet. Params : public - when true, anyone can use the camera.
- /cctv delete link - Enter Link deletion mode. (You cannot delete a link that is not yours).
Note : You Rightclick to exit the camera.
Config
# Camera Config Options Camera: # Which block IDS can be a camera? Separated by "," # 49 = Obsidian, 19 = Sponge, 23 = Dispenser. Camera Block IDS: 49,19,23 # Allow dispenser cameras or only 360 cameras are created? Camera can be dispenser: true #Screen Config Options Screen: # Which block IDS can be a screen? Separated by ",". # 35:15 = Black Wool , 35:7 = Grey Wool Screen Block IDS: 35:15,35:7 #General Config options CCTV: #Creates either glowstone or glass under a camera Create Glowstone under camera: false #Self explanatory Invisible while viewing camera: true
Permissions
- cctv.create - all CCTV Camera commands.
- cctv.use - Permission to use the camera
- cctv.admin.spy - Allows server admins to view all cameras. Whether public or private.
Video
Thanks a lot to WoopaGaming for the video!
[German]
Filing errors
Please....please do not post errors on the comments on the plugin as they spam the comments and lead to me not being able to read other people's messages and also that the amount of chars per line is too small so that I will not be able to read and decipher the error as fast as I normally would.
I manage the following :
- Private Messages - Feel free to pm me
- Tickets
- The Forum
If you wish, you can put it in the form of a paste.
Live Graph Feed of Usage
Download
- See file for corresponding change log.
Notes
^ The image is a link in case you did not know ^
Delete the CCTV Camera folder in your plugins folder OR delete the Links.txt file located in the Data folder in the CCTV Camera folder before updating if specified.



-
View User Profile
-
Send Message
Posted Jun 28, 2012To everyone: Found a fix if you're having trouble actually using your camera. Place the camera and screen down, link the two, then delete and replace the camera block. That's how it worked for me. Figured I'd let the maker know of this issue. (v1.0)
EDIT: New issue. When I use the camera a glowstone is always created under the camera block. I'm using v1.1 currently of cctv. I also placed the camera block high up and away from any blocks at my spawn. (v1.1)
-
View User Profile
-
Send Message
Posted Jun 28, 2012Help please.. i would really enjoy this plugin :) Here is the error i get when i use the command /cctv
01:46:01 [SEVERE] null org.bukkit.command.CommandException: Unhandled exception executing command 'cctv ' in plugin CCTV Camera v1.0 at org.bukkit.command.PluginCommand.execute(PluginCommand.java:42) at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:166) at org.bukkit.craftbukkit.CraftServer.dispatchCommand(CraftServer.java:479) at net.minecraft.server.NetServerHandler.handleCommand(NetServerHandler. java:821) at net.minecraft.server.NetServerHandler.chat(NetServerHandler.java:781)
at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:764) at net.minecraft.server.Packet3Chat.handle(Packet3Chat.java:34) at net.minecraft.server.NetworkManager.b(NetworkManager.java:229) at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:113) at net.minecraft.server.NetworkListenThread.a(NetworkListenThread.java:78) at net.minecraft.server.MinecraftServer.w(MinecraftServer.java:567) at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:459) at net.minecraft.server.ThreadServerApplication.run(SourceFile:492) Caused by: java.lang.ArrayIndexOutOfBoundsException: 0 at me.sayaad.CCTV.main.onCommand(main.java:85) at org.bukkit.command.PluginCommand.execute(PluginCommand.java:40) ... 12 more
it also says an internal error has occured. Plz help! :)
-
View User Profile
-
Send Message
Posted Jun 28, 2012@russellsayshi
Oops, silly me. Got so rushed on fixing bugs I forgot to compile with java 6 instead of 7 xD
Re download latest dev build and try again.
I sincerely apologize for that.
-
View User Profile
-
Send Message
Posted Jun 28, 201222:51:18 [SEVERE] Could not load 'plugins/CCTV Camera.jar' in folder 'plugins' org.bukkit.plugin.InvalidPluginException: java.lang.UnsupportedClassVersionError: me/sayaad/CCTV/main : Unsupported major.minor version 51.0 at org.bukkit.plugin.java.JavaPluginLoader.loadPlugin(JavaPluginLoader.java:150) at org.bukkit.plugin.SimplePluginManager.loadPlugin(SimplePluginManager.java:305) at org.bukkit.plugin.SimplePluginManager.loadPlugins(SimplePluginManager.java:230) at org.bukkit.craftbukkit.CraftServer.loadPlugins(CraftServer.java:207) at org.bukkit.craftbukkit.CraftServer.<init>(CraftServer.java:183) at net.minecraft.server.ServerConfigurationManager.<init>(ServerConfigurationManager.java:53) at net.minecraft.server.MinecraftServer.init(MinecraftServer.java:156) at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:422) at net.minecraft.server.ThreadServerApplication.run(SourceFile:492) Caused by: java.lang.UnsupportedClassVersionError: me/sayaad/CCTV/main : Unsupported major.minor version 51.0 at java.lang.ClassLoader.defineClass1(Native Method) at java.lang.ClassLoader.defineClassCond(ClassLoader.java:631) at java.lang.ClassLoader.defineClass(ClassLoader.java:615) at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:141) at java.net.URLClassLoader.defineClass(URLClassLoader.java:283) at java.net.URLClassLoader.access$000(URLClassLoader.java:58) at java.net.URLClassLoader$1.run(URLClassLoader.java:197) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(URLClassLoader.java:190) at org.bukkit.plugin.java.PluginClassLoader.findClass(PluginClassLoader.java:41) at org.bukkit.plugin.java.PluginClassLoader.findClass(PluginClassLoader.java:29) at java.lang.ClassLoader.loadClass(ClassLoader.java:306) at java.lang.ClassLoader.loadClass(ClassLoader.java:247) at java.lang.Class.forName0(Native Method) at java.lang.Class.forName(Class.java:247) at org.bukkit.plugin.java.JavaPluginLoader.loadPlugin(JavaPluginLoader.java:139) ... 8 more
O.o
Latest dev build.
-
View User Profile
-
Send Message
Posted Jun 28, 2012@Zurimaxicata
NP :3 glad to help my downloaders
-
View User Profile
-
Send Message
Posted Jun 28, 2012@sayaad
ok, thx you!
-
View User Profile
-
Send Message
Posted Jun 28, 2012@Zurimaxicata
"java.io.FileNotFoundException: plugins/CCTV Camera/Data/Links.txt (Too many open files)"
The links file is not found. You can create it manually (directory plugin/CCTV Camera/Data/Links.txt)
Please, if you get an error send me a pm or post a ticket or make a paste and send me the link, that way it is much easier to analize errors.
You can also delete the CCTV Camera folder in the plugins directory and restart your server so that it creates it automatically and you re-link your cameras and screens.
-
View User Profile
-
Send Message
Posted Jun 28, 201229.06 03:03:33 [Server] SEVERE at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:464) 29.06 03:03:33 [Server] SEVERE at org.bukkit.plugin.SimplePluginManager.fireEvent(SimplePluginManager.java:479) 29.06 03:03:33 [Server] SEVERE at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:62) 29.06 03:03:33 [Server] SEVERE at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:302) 29.06 03:03:33 [Server] SEVERE at java.lang.reflect.Method.invoke(Unknown Source) 29.06 03:03:33 [Server] SEVERE at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) 29.06 03:03:33 [Server] SEVERE at sun.reflect.GeneratedMethodAccessor31.invoke(Unknown Source) 29.06 03:03:33 [Server] SEVERE at me.sayaad.CCTV.listener.onPlayerInteract(listener.java:72) 29.06 03:03:33 [Server] SEVERE at me.sayaad.CCTV.util.API.getLinkLocations(API.java:53) 29.06 03:03:33 [Server] SEVERE at java.util.Scanner.<init>(Unknown Source) 29.06 03:03:33 [Server] SEVERE at java.io.FileInputStream.<init>(Unknown Source) 29.06 03:03:33 [Server] SEVERE at java.io.FileInputStream.open(Native Method) 29.06 03:03:33 [Server] SEVERE java.io.FileNotFoundException: plugins/CCTV Camera/Data/Links.txt (Too many open files) 29.06 03:03:33 [Server] SEVERE [CCTV Camera] An error occured reading and adding to the LinksLocation Array. Please make a ticket of this error : 29.06 03:03:33 [Server] SEVERE at net.minecraft.server.ThreadServerApplication.run(SourceFile:492) 29.06 03:03:33 [Server] SEVERE at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:518) 29.06 03:03:33 [Server] SEVERE at net.minecraft.server.MinecraftServer.w(MinecraftServer.java:640) 29.06 03:03:33 [Server] SEVERE at net.minecraft.server.NetworkListenThread.a(NetworkListenThread.java:97) 29.06 03:03:33 [Server] SEVERE at net.minecraft.serverhook.NetServerHandlerProxy.a(NetServerHandlerProxy.java:83) 29.06 03:03:33 [Server] SEVERE at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:114) 29.06 03:03:33 [Server] SEVERE at net.minecraft.server.NetworkManager.b(NetworkManager.java:229) 29.06 03:03:33 [Server] SEVERE at net.minecraft.server.Packet10Flying.handle(SourceFile:126) 29.06 03:03:33 [Server] SEVERE at net.minecraft.serverhook.NetServerHandlerProxy.a(NetServerHandlerProxy.java:99) 29.06 03:03:33 [Server] SEVERE at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:342) 29.06 03:03:33 [Server] SEVERE at net.minecraft.server.EntityPlayer.a(EntityPlayer.java:228) 29.06 03:03:33 [Server] SEVERE at net.minecraft.server.EntityHuman.F_(EntityHuman.java:159) 29.06 03:03:33 [Server] SEVERE at net.minecraft.server.EntityLiving.F_(EntityLiving.java:447) 29.06 03:03:33 [Server] SEVERE at net.minecraft.server.EntityHuman.e(EntityHuman.java:312) 29.06 03:03:33 [Server] SEVERE at net.minecraft.server.EntityLiving.e(EntityLiving.java:1159) 29.06 03:03:33 [Server] SEVERE at net.minecraft.server.EntityHuman.a(EntityHuman.java:1062) 29.06 03:03:33 [Server] SEVERE at net.minecraft.server.EntityLiving.a(EntityLiving.java:969) 29.06 03:03:33 [Server] SEVERE at net.minecraft.server.Entity.move(Entity.java:708) 29.06 03:03:33 [Server] SEVERE at net.minecraft.server.BlockPressurePlate.a(BlockPressurePlate.java:75) 29.06 03:03:33 [Server] SEVERE at net.minecraft.server.BlockPressurePlate.g(BlockPressurePlate.java:113) 29.06 03:03:33 [Server] SEVERE at org.bukkit.craftbukkit.event.CraftEventFactory.callPlayerInteractEvent(CraftEventFactory.java:177) 29.06 03:03:33 [Server] SEVERE at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:464) 29.06 03:03:33 [Server] SEVERE at org.bukkit.plugin.SimplePluginManager.fireEvent(SimplePluginManager.java:479) 29.06 03:03:33 [Server] SEVERE at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:62) 29.06 03:03:33 [Server] SEVERE at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:302) 29.06 03:03:33 [Server] SEVERE at java.lang.reflect.Method.invoke(Unknown Source) 29.06 03:03:15 [Server] SEVERE at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) 29.06 03:03:15 [Server] SEVERE at sun.reflect.GeneratedMethodAccessor31.invoke(Unknown Source) 29.06 03:03:15 [Server] SEVERE at me.sayaad.CCTV.listener.onPlayerInteract(listener.java:72) 29.06 03:03:15 [Server] SEVERE at me.sayaad.CCTV.util.API.getLinkLocations(API.java:53) 29.06 03:03:15 [Server] SEVERE at java.util.Scanner.<init>(Unknown Source) 29.06 03:03:15 [Server] SEVERE at java.io.FileInputStream.<init>(Unknown Source) 29.06 03:03:15 [Server] SEVERE at java.io.FileInputStream.open(Native Method) 29.06 03:03:15 [Server] SEVERE java.io.FileNotFoundException: plugins/CCTV Camera/Data/Links.txt (Too many open files) 29.06 03:03:15 [Server] SEVERE [CCTV Camera] An error occured reading and adding to the LinksLocation Array. Please make a ticket of this error : 29.06 03:03:15 [Server] SEVERE at net.minecraft.server.ThreadServerApplication.run(SourceFile:492)
Why ?
-
View User Profile
-
Send Message
Posted Jun 28, 2012Minor Update 1.2
Download from the latest Development Build
-
View User Profile
-
Send Message
Posted Jun 28, 2012@Zurimaxicata
Look at the configuration.
Change "Only player that created link can use link" to false
-
View User Profile
-
Send Message
Posted Jun 28, 2012@krone6
Okay, refer to the troubleshooting above. If that does not work then send me a pm or a ticket of the links.txt file and I will try my best to help you.
-
View User Profile
-
Send Message
Posted Jun 28, 2012I can Use It Perfectly , but my users on the spawn cant . WHy?
-
View User Profile
-
Send Message
Posted Jun 28, 2012I'm failing here, though after i linked the camera and screen nothing happens after i right click. I get no errors, text says i have successfully linked, though all i do is place a block when trying to right click either the screen or camera.
I'm using a sponge for my camera and a black wool piece for the screen. I want a camera that sits on top of a light post at spawn and lets people view anyone that spawns there.
-
View User Profile
-
Send Message
Posted Jun 28, 2012@Zurimaxicata
dibujaron (tester and person who requested this plugin) is making a video :3 I just made this project and its already heaping to popularity xD
-
View User Profile
-
Send Message
Posted Jun 28, 2012Could You Make a Video Please
I Look For this plugin many months.. and i found it! THX!
-
View User Profile
-
Send Message
Posted Jun 28, 2012@Enrux
Glad you like it :3
If you wish to download it, you can from the dev build link while I wait for bukkit to approve the file
-
View User Profile
-
Send Message
Posted Jun 28, 2012This plugin is awesome! :D
-
View User Profile
-
Send Message
Posted Jun 28, 2012I'm very interested in this plugin too. Do I need it? Not really, but dang it sounds like a very fun plugin to have anyhow.
-
View User Profile
-
Send Message
Posted Jun 28, 2012I wouldn't mind a video showing this.
-
View User Profile
-
Send Message
Posted Jun 28, 2012Still waiting on files to be approved....
Bukkit seems slow today..... Projects and files I upload usually gets accepted within 5 min....its been an hour