Building locating plugin

Discussion in 'Archived: Plugin Requests' started by stefa168, Nov 22, 2012.

  1. Offline

    stefa168

    Plugin category: (Don't know)

    Suggested name: LocateBuild

    What I want: A plugin that writes on a .txt or .yml file the locations of a building that has a specified form. Then you can teleport to that location simply using "/lb list [name of the building]" to list all the buildings that were made an where they were made.
    First you have to make a selection with WorldGuard of the building that has to be located. After that you have to use a command like "/lb new" to let the plugin know that you want to make a new building. After that command starts a procedure that involves the "command runner" by requesting to him/her several things in order:
    1. The name of the building (not case sensitive);
    2. A message that the player receives when he makes correctly a "building" recognised by the plugin (needs the permissions node "locatebuild.user" or "locatebuild.notificate.direct";
    3. A message for the players/groups/ops that have the permissions node "locatebuild.admin" or "locatebuild.notificate.indirect";
    4. Now the plugins writes to the command runner a summary of what he typed and wants to know if it is all correct (if not he can change it at that moment or by running later the "/lb edit <name of the building>).
    From now if someone makes a building (nor if it was made before the registering of the building or if it isn't made by a player) that is the same as the one that was registered in the plugin, the player receives a notification, the admins/ops/players with the correct permissions receive their notification and the location of the last block placed to make the building is saved. If a block of the building is removed or is placed inside the area of the building the plugin removes from the list that bulding because it isn't like the first one.
    This is only an Idea so if someone makes this plugin he can change all but the central idea and function must be the same.
    All the files must be at least flatfile but it can also use a sql database.

    Ideas for commands: Central command: "/lb": it writes a list of the commands available.

    "/lb new" or "/lb create" or "/lb add" starts the procedure for registering a new building.

    To register a new building you can also use the fast-command "/lb new <name of the building> [message for users] [message for ops]"

    "/lb del [name of building]" or "/lb remove [name of building]" or "/lb delete [name of building]" Removes the building after writing the second command "/lb sure".

    "/lb edit" to edit something about a building

    "/lb list [name of the building]" without "[name of the building]" it lists all the registered buildings. With the second parameter it writes all the locations of a specified building:
    <<
    You selected the building "abcdef". Here's the first page of the locations of that building:
    1. x:32 y:54 z:3 Made by: Notch Built on: 01/01/2012
    2. x:56 y:45 z:97 Made by: Jeb_ Built on: 01/01/2012
    3. ...
    4. x:*** y:*** z:*** Made by: "name of the builder" Built on: "date of the building"

    Ideas for permissions: I wrote some in the previous parts

    When I'd like it by: one month
     

Share This Page