Vigilate - A security camera plugin

This is a discussion topic for the Ore project, Vigilate. View the full project on Ore for downloads and more information.



This Project is no longer maintained, you can still download it or look at the source code at GitHub but no updates or support will be provided GitHub - Lergin/Vigilate: a sponge plugin that adds cctvs


Vigilate is a Sponge Plugin that allows you to add positions as cameras that players can view without moving or changing anything.

Commands

/camera view < camera >

Ports the executing player to the camera and allows to view the area. Any movement or interaction will end the view of the camera and resets the player back to the position he is from.

Example
/camera view test

Shows the camera with the id test

Permission

vigilate.view + permission of the camera if it has one

/camera list

Lists all cameras the player has the permissions to use.

list command

Permission

vigilate.list

/camera info < camera >

Shows some informations about a camera, like the position of the camera.

Examples
/camera info test

info command

Permission

vigilate.info + permission of the camera if it has one

/camera create < id > < name > [ < world > < x > < y > < z > ] [ permission ]

Creates a new camera on the current location of the player or the given location. The camera will require the permission, if used in the command, to be used. It is expected that the id is lowercase.

Examples
/camera create test Test vigilate.cameras.spawn

Creates a camera with the id test and the name Test at the location of the player. The camera will also require the permission vigilate.cameras.spawn to be used.

/camera create market "User Market" world 120 70 132

Creates a camera with the id market and the name User Market in the world world at the Position (120/70/132). The camera will not require any permission to be used.

Permission

vigilate.create

/camera delete

Deletes the camera from the server and the configuration.

Permission

vigilate.delete

/camera reload

Reloads the configuration

Permission

vigilate.reload

Configuration

The configuration currently just contains a list of all the cameras of the server:

cameras=[
    {
        # Id of the camera
        id=market
        # Location of the camera
        location {
            world=world
            x=120.0
            y=70.0
            z=132.0
        }
        # Name of the camera
        name {
            color=green
            text="User Market"
        }
        # Permission needed to use the camera
        permission=null
    }
]

cameras

This is the list of all the cameras of the server.

The id is the id of the camera and permission the permission needed to use it (null if no permission is needed).

The location is splited into the name of the world, and the coordinates of the camera.

The name is a text that supports all the text format configurations from sponge and is used everywhere where the camera is referenced as a text.

translations

The translations for the messages from the plugin. It is automatically populated with the current messages set in the plugin and uses the default configuration formats for texts and text templates: Configuration Format — Sponge 7.2.0 documentation
TextTemplates — Sponge 7.2.0 documentation

External Connections

This plugin uses bStats to collect metrics about the usage. This can be deactivated in the bStats config.

4 Likes

A couple of comments:

  • You don’t need to wrap all your command arguments in onlyOne since none of the arguments you use return multiple elements.
  • You also don’t need to optional-check them since they are required to exist.
  • In places like this, a sub-text would work better since the supertext won’t keep the green attribute.

Now for a plugin feature suggestion:
Rather than creative mode, wouldn’t spectator mode be perfect for viewing cameras?

1 Like

Ah that is good to know, i will most likely change that in the next days :slight_smile:

I also tried this but there are some problems, like the ability to change the own speed by using the mouse wheel, so i have used the creative mode.

But when in camera mode just disable movement… Cancel move events for the player

1 Like

Actually i’m already doing this and ending the camera mode if a player moves. But I haven’t had the auto end of the mode included while i was testing it so the player has moved in this weird backport stuff and was portet back to the position all the time. So i maybe will look back into it tomorrow and test some of my other concerns, like seeing other players and hidden armorestands.

A new version has been released for Vigilate, it is available for download here.


Added BStats

I also tried using the spectator mode, but as expected it isn’t working because there is no way to make invisible armorstands invisible in this mode.

A new version has been released for Vigilate, it is available for download here.


added Reload Command
added Delete Command
added Messages to Configuration

2 Likes

Can i carry your plugin to mcbbs.net?
This plugin is very good and i really like it.

The license allowes it so there isn’t much I could do against it :smiley: But please give proper credit to me and link to ore for the download, then you are also allowed to use the logo :slight_smile:

is this going to be updated to 1.12.2

1 Like