Inactive [WGEN/SEC] PlotMe v0.9 - Plot generation and protection [1.3-R1.0]

Discussion in 'Inactive/Unsupported Plugins' started by ZachBora, Jun 2, 2012.

  1. Offline

    ZachBora

    [​IMG]
    PlotMe - Plot Generation and Protection
    Version: v0.6b

    Greetings dear server admin! I present you PlotMe, a multi-world plot plugin. Each plot world has it's own configurations. Each plot is protected and only the owner can build on it. The paths surrounding the plots are protected against grief. Example world dynmap

    Download

    Requirements

    The only requirement is CraftBukkit and a SuperPermissions plugin. If you will host multiple worlds or if you are adding a new world, it is suggested to install a world management plugin like MultiVerse.

    Optional Dynmap addon

    You can find DynmapPlotMe here. It will show on your dynmap who owns which plots and the helpers.

    Installation
    Video tutorial by Samkio and Torrent from WoopaGaming :


    Once you have place the PlotMe.jar in your plugins directory, Start your server with any map. This will create the configuration file located in your plugins/PlotMe folder.
    Open the file config.yml with a text editor and change the default settings (see configuration section below).

    Only map
    If this is the only map you will be using, go in your bukkit.yml and look for a section called "worlds:", if it is not present at it at the end of the file.
    In this section, add the name of your world and set the generator to PlotMe like this :
    Code:
    worlds:
      plotworld:
        generator: PlotMe
    
    Multiple maps
    If you are using MultiVerse, create the world like so :
    /mv create {NAME} normal -g PlotMe
    Metrics

    Since v0.3, PlotMe is now using Metrics by Hidendra. This sends unanonymous data to mcstats.org every half hour regarding the plugin version and number of plots. This is harmless but if you ever feel the need, it can be disabled in folder plugins/PluginMetrics/config.yml Just change the opt-out to true.

    Configuration
    PlotMe comes with following default configurations :
    Code:
    worlds:
      plotworld:
        PlotAutoLimit: 100
        PathWidth: 7
        PlotSize: 32
        BottomBlockId: 7
        WallBlockId: 44
        PlotFloorBlockId: 2
        PlotFillingBlockId: 3
        RoadHeight: 64
        DaysToExpiration: 7
    usemySQL: false
    mySQLconn: jdbc:mysql://localhost:3306/minecraft
    mySQLuname: root
    mySQLpass: password
    
    • PlotAutoLimit - This is the max plot X that the command /plot auto will loop. 100 means 100x100 plots will be scanned. Increase when the command returns an error. "No plot found within 10000 plots. Contact an admin."
    • PathWidth - This is the width of the paths INCLUDING the plot walls
    • PlotSize - This is the size of one side of each plots and excludes the wall. The walls cannot be modified by plot owners
    • BottomBlockId - The is the block at the bottom of the world. By default bedrock
    • WallBlockId - This is the block around each plots. By default half-step. Other values could be 0 (air).
    • PlotFloorBlockId - This is the top layer of each plot
    • PlotFillingBlockId - This is the content between the top layer and the bottom layer in each plot.
    • RoadHeight - This is the height at which the road is.
    • DaysToExpiration - This is the number of days at which plots expire. Setting this to 0 makes the plots never expire. Expired plots are not deleted or cleared, they are simply added to the list of expired plots at "/plotme expired".
    • usemySQL - If this is false, PlotMe will use a SQLLite file located in the plugin subfolder next to this configuration file. If set to true, the plugin will use MySQL
    • mySQLconn - Connection string with MySQL
    • mySQLuname - Username for MySQL
    • mySQLpass - Password for MySQL
    Example with 3 maps :
    Show Spoiler

    Code:
    worlds:
      starterland:
        PlotAutoLimit: 100
        PathWidth: 7
        PlotSize: 32
        BottomBlockId: 7
        WallBlockId: 44
        PlotFloorBlockId: 2
        PlotFillingBlockId: 3
        RoadHeight: 64
        DaysToExpiration: 7
      advancedworld:
        PlotAutoLimit: 100
        PathWidth: 9
        PlotSize: 50
        BottomBlockId: 7
        WallBlockId: 44
        PlotFloorBlockId: 2
        PlotFillingBlockId: 3
        RoadHeight: 30
        DaysToExpiration: 0
      megabuilds:
        PlotAutoLimit: 100
        PathWidth: 15
        PlotSize: 200
        BottomBlockId: 7
        WallBlockId: 44
        PlotFloorBlockId: 2
        PlotFillingBlockId: 3
        RoadHeight: 10
        DaysToExpiration: 0
    usemySQL: false
    mySQLconn: jdbc:mysql://localhost:3306/minecraft
    mySQLuname: root
    mySQLpass: password
     
    


    Usage

    Once your server is configure and everything is ready and after you've setup the permissions using the section below, the rest is very easy.
    All that needs to be done is for a user to come up to a plot and type /plotme claim or from anywhere inside the plot world use /plotme auto and a plot will be automatically assigned to the person. A claimed plot gets a sign in the corner that displays the plot id along with the owner. This sign will disappear if the plot is reset.

    The owner of the plot can now build whatever he wants.

    What if the owner wants to get rid of his plot? An admin or someone with the right permissions can use /plot clear and the plot will be recreated just like it was previously.

    Plots and paths will be protected, as long as the world name is in the configuration file, no need to create a worldguard region.

    Commands
    The commands can start either by /plotme /plot or /p as long as no other plugin conflicts. VoxelSniper uses /p
    • /plotme claim Claim the plot
    • /plotme claim <player> Claim the plot for a player
    • /plotme auto Claim the next free plot
    • /plotme home[:#] Brings you to your plot. :# if multiple plots. Example: /plotme home will take you to your first plot. /plotme home:2 will take you to your second plot.
    • /plotme home[:#] <player> Teleport to that player plot. :# if multiple plots. Example: /plotme home zachbora will take you to his first plot. /plotme home:2 zachbora will take you to his second plot.
    • /plotme info Displays info on the plot. (The plot ID, owner, biome, expiration date, finished, helpers)
    • /plotme comment <text> Leave a comment
    • /plotme comments Shows the plot comments
    • /plotme biome Shows current biome
    • /plotme biome <biome> Sets the plot biome
    • /plotme biomelist List the possible biomes
    • /plotme tp <id> Teleports to a plot
    • /plotme id Gets plot id and coordinates
    • /plotme clear Clears the plot
    • /plotme reset Clears the plot and removes owner
    • /plotme add <player> Allows a player on the plot
    • /plotme remove <player> Removes a player on the plot
    • /plotme setowner <player> Sets the plot owner
    • /plotme move <id-from> <id-to> Exchanges both plots (VERY experimental, will break torches and stuff)
    • /plotme reload Reloads the plugin
    • /plotme list Lists your plots
    • /plotme list <player> Lists that player's plot
    • /plotme weanywhere Allows to use WorldEdit outside plots that you own
    Commands usable by console
    • /plotme reload Reloads the plugin
    Permissions

    There are 2 main permissions. You can either give those or give specific sub-permissions.
    • plotme.useIncludes :
      • plotme.use.claim Gives /plotme claim
      • plotme.use.auto Gives /plotme auto
      • plotme.use.home Gives /plotme home[:#]
      • plotme.use.info Gives /plotme info and /plotme biome
      • plotme.use.comment Gives /plotme comment
      • plotme.use.comments Gives /plotme comments
      • plotme.use.biome Gives /plotme biome <biome> and /plotme biomelist
      • plotme.use.comments Gives /plotme comments
      • plotme.use.clear Gives /plotme clear for plots owned
      • plotme.use.add Gives /plotme add <player> for plots owned
      • plotme.use.remove Gives /plotme remove <player> for plots owned
    • Not included in plotme.us :
      • plotme.use.add Gives /plotme add <player>(Only applies to plots you own)
      • plotme.use.remove Gives /plotme remove <player>(Only applies to plots you own)
      • plotme.limit.X Replace X by a number to limit the number of plots a user can claim/auto or by * for unlimited plots. If the user doesn't have permission, default is 1 plot. If the user has multiple permissions due to inheritance, highest number is kept
    • plotme.adminIncludes :
      • plotme.admin.claim.other Gives /plotme claim <player>
      • plotme.admin.home.other Gives /plotme home[:#] <player>
      • plotme.admin.tp Gives /plotme tp <id>
      • plotme.admin.id Gives /plotme id
      • plotme.admin.clear Gives /plotme clear
      • plotme.admin.reset Gives /plotme reset
      • plotme.admin.add Gives /plotme add <player>
      • plotme.admin.remove Gives /plotme remove <player>
      • plotme.admin.setowner Gives /plotme setowner <player>
      • plotme.admin.move Gives /plotme move <id-from> <id-to>
      • plotme.admin.weanywhere Gives /plotme weanywhere
      • plotme.admin.list Gives /plotme list <player>
      • plotme.admin.reload Gives /plotme reload
    Things to do / Planned additions
    • Find a way to make /plot move more stable.
    • Add function to move a plot from a smaller world to a bigger plot world.
    • Add a command to flag plots Done and a command for admins to see plots that are done
    • Add function to connect adjacent plots of the same owner.
    Examples / Testimonies

    The plugin is currently in use on the PwegoServer. Dynmap example

    Changelog:
    Version 0.7
    Major changes
    • Added 2 protection groups per world.
      • ProtectedBlocks : Will prevent people from interacting with these blocks. Defaults :
        • 54 Chest
        • 61 Furnace
        • 62 Burning Furnace
        • 120 End Portal Frame
        • 94 Repeater On
        • 95 Repeater Off
        • 84 Jukebox
        • 25 Note Block
        • 26 Bed
        • 118 Cauldron
        • 117 Brewing Stand
      • PreventedItems : Will prevent people from right-clicking while holding these items. Defaults :
        • 351:15 Bonemeal
        • 321 Paiting
        • 259 Flint and Steel
        • 328 Minecraft
        • 343 Minecart with Furnace
        • 342 Minecart with Chest
        • 333 Boat
    Minor changes
    • Fixed powering rails and redstone above and under roads. The physic event is no longer being listened. If this causes any issues please report this in a ticket with the process to reproduce the problem.
    • Fixed errors thrown when you didn't properly set your configurations and you tried to generate a world with Multiverse. The world will now properly generate with default values and throw a warning.
    • Removed debugging message when plots expiration is updated


    Older versions
    Show Spoiler

    Version 0.6c
    • Fixed Lag (hopefully for good this time!) by removing unnecessary Expiration date updates.
    • Enabled "Interactions" in other people plots like Levers, pressure plates, doors. Bonemeal is the only disabled interaction. This fix is temporary and in the future, flags will be added per plots and/or per world.
    • Fixed plotme.limit.X permission for PEX users. Apparently the way it was handled isn't supported by PEX, so a loop has been added and will support a limit up to 255.
    • Fix to entity explosions, hopefully no more errors thrown now.
    • Renamed the config "WorldHeight" to "RoadHeight". Existing "WorldHeight" will automatically be renamed "RoadHeight". "WorldHeight" is now deprecated. (Deprecated means it will still work for the next few updates when people migrate, but we will remove it someday and if people have never used v0.6c+ they will have the "RoadHeight" property reset to default)
    • Fixes for Null errors
    • RoadHeight (WorldHeight) is now limited to 250. Anything above that will raise an error and set itself to 250.
    Version 0.6b
    • Fixed the /plotme remove command
    • Disabled TNT in all plotme worlds. This is to fix TNT exploit when triggering tons of TNT near claimed plots. There's nothing I can do to prevent it at the moment because when a TNT entity moves it does not throw an event so I cannot tell if it moved from one claimed plot to another.
    • Fix to expiration update, instead of saving to database each time a block is broken or placed, it will only save to database if the new expiration date is different than the previous one. This should improve performance.
    • Fixed help doing an error outside plot worlds.
    • Added lots of error handlings to various commands. This should remove the errors in logs.
    Version 0.6
    • Fixed the help to only show commands you are allowed to use
    • Added command "/plotme list" which displays plots that you are allowed to build on along with the expiration date and helpers. (plotme.user.list)
    • Added command "/plotme list [player]" which displays plots that you are allowed to build on along with the expiration date and helpers. (plotme.admin.list)
    • Added command "/plotme expired [page]" which displays expired plots (plotme.admin.expired)
    • Added command "/plotme addtime" which resets the expiration date depending on the DaysToExpiration configuration. (plotme.admin.addtime)
    • Plots which get modified by the plot owner or by one of the helpers get it's expiration date reset. (Listening to block place, break and interact)
    • Added new parameter in the config.yml for the DaysToExpiration. Default is 7. Set to 0 for never expire.
    • Fixed config.yml to input default values for new parameters when they were previously not present (Example: WorldHeight)
    • Changed the date format for Expiration date in the command "/plotme info" to YYYY-MM-DD
    Version 0.5
    • Added permission "plotme.limit.X". It determines the number of plots that can be claimed. Replace X with a number or with * for unlimited.
    • Added new parameter in the config.yml for the WorldHeight. Default is 64
    Version 0.4b
    • Enabled ~//up for plots allowed
    • Disabled SuperPickaxe single outside plots allowed
    • Disabled TNT and setting Fire in roads and plots in which you are not allowed. TNT cannons should only break blocks in the plot they originated from.
    • Fixed sign placement when road was set on different width than 7. Existing plots can be fixed by applying /plotme setowner with the current owner. You'll have to manually break the leftover sign.
    • Fixed /plot clear and /plot reset not correctly aligning when path width different than 7.
    • Fixed Helpers being unable to use WorldEdit.
    • Fixed Helpers added with different capitalization not being able to build.
    • Fixed using worldedit while standing outside the plot. Previously you had to walk into the plot. Now it will detect on click and set your worldedit zone there if you are allowed.
    Version 0.4
    • Added WorldEdit support. Even if the user has WorldEdit permission, he can only modify a plot he owns. Commands ~//gmask and ~//up are disabled in a plot world. People with permission "plotme.admin.weanywhere" can use command "/plotme weanywhere" to use WorldEdit anywhere.
    • The command /plotme clear and /plotme reset now also restore the wall surrounding the plot.
    Version 0.3b
    • Fixed command setowner and biome to correctly save them in the database. Prior to this fix, they would revert upon server restart.
    • Fixed WorldGenerator error when world was not contained in configuration file (does not contain any generators that may be used in the default world). When this is the case, Default configurations will be used to generate the world and a warning will be shown in server log.
    Version 0.3
    • Built help pages, usable with /plotme, /plotme 2, /plotme 3, etc. Thanks to t3hcontroller
    • Made worlds case-insensitive. Existing worlds shouldn't be affected, if they are please notice me.
    • Added clear, add and remove for owned plots. Permissions : plotme.use.clear, plotme.use.add and plotme.use.remove
    • Fix allowing plot owners to use buckets on the sides of the plots
    • Signs telling the plot owner no longer turn the corner block into double half-steps. Removing owner no longer turns corner into half-step.
    Version 0.2c
    • Fix permissions issues
    • Fix configuration overwritting itself with previous configuration when using the plotme reload command.
    Version 0.2b
    • Removed some forgotten debugging code throwing an error when no world is named "plotworld
    Version 0.2
    • First public release
     
    xingbreakin, JWhy, codename_B and 6 others like this.
  2. Offline

    rct3fan24

    Come on, please help. It's the ONLY thing I have to do before I finish my server, and let it go public.
     
  3. Offline

    ZachBora

    Sounds like you didn`t configure your world correctly. Or everyone has permissions...

    Can you provide your plotme config.yml and what permissions you gave? Also the name of your plotme world.
     
  4. Offline

    rct3fan24

    The name of the world is "freebuild" without the quotes, it is the only world.

    Here's my config:

    worlds:
    freebuild:
    PlotAutoLimit: 100
    PathWidth: 7
    PlotSize: 128
    BottomBlockId: 7
    WallBlockId: 44
    PlotFloorBlockId: 2
    PlotFillingBlockId: 3
    RoadHeight: 64
    DaysToExpiration: 0
    ProtectedBlocks:
    - 54
    - 61
    - 62
    - 120
    - 94
    - 93
    - 84
    - 25
    - 355
    - 118
    - 117
    ProtectedWallBlockId: '44:4'
    ForSaleWallBlockId: '44:1'
    AuctionWallBlockId: '44:1'
    AutoLinkPlots: true
    DisableExplosion: true
    DisableIgnition: true
    economy:
    UseEconomy: false
    CanPutOnSale: false
    CanSellToBank: false
    RefundClaimPriceOnReset: false
    RefundClaimPriceOnSetOwner: false
    ClaimPrice: 0.0
    ClearPrice: 0.0
    AddPlayerPrice: 0.0
    RemovePlayerPrice: 0.0
    PlotHomePrice: 0.0
    CanCustomizeSellPrice: false
    SellToPlayerPrice: 0.0
    SellToBankPrice: 0.0
    BuyFromBankPrice: 0.0
    AddCommentPrice: 0.0
    BiomeChangePrice: 0.0
    ProtectPrice: 0.0
    DisposePrice: 0.0
    PreventedItems:
    - '351:15'
    - '321'
    - '259'
    - '328'
    - '343'
    - '342'
    - '333'
    usemySQL: false
    mySQLconn: jdbc:mysql://localhost:3306/minecraft
    mySQLuname: root
    mySQLpass: password
    AutoPlotLimit: 100
    globalUseEconomy: false
    AdvancedLogging: false


    And now here's my permissions:

    users:
    rct3fan24:
    groups:
    - admin
    bobling2000:
    groups:
    - admin
    TheAmazingZdog:
    groups:
    - mod
    Laxmaster1234:
    groups:
    - mod
    Landmaster20000:
    groups:
    - mod
    webablaba:
    groups:
    - mod
    nman489:
    groups:
    - vet
    sbprimes:
    groups:
    - vet
    camburgerz4evr:
    groups:
    - vet
    groups:
    default:
    permissions:
    worldedit.*: false
    plotme.use.*: true
    plotme.limit.1: true
    sg.arena.join: true
    sg.arena.vote: true
    sg.lobby.join: true
    vet:
    permissions:
    plotme.limit.3: true
    sg.arena.spectate: true
    sg.arena.forcestart: true
    worldedit.*: true
    inheritance:
    - default
    mod:
    permissions:
    plotme.limit.10: true
    colorme.sign: true
    colorme.self.*: true
    inheritance:
    - vet
    admin:
    permissions:
    permissions.*: true
    plotme.admin.*: true
    plotme.limit.*: true
    colorme.chat: true
    colorme.*: true
    prefixer.*: true
    sg.*: true
    inheritance:
    - mod

    messages:
    build: '&cYou do not have permission to build here.'
    debug: false

    Well, there you go.

    BTW everything was copy-pasted.
     
  5. Offline

    ZachBora

    rct3fan24 it looks good, as long as you're testing with a default or a vet, those 2 ranks don't have permission to build anywhere.

    Any rank with plotme.admin.* will be able to build anywhere
     
  6. Offline

    rct3fan24

    ok, I'll do some more testing. I couldn't find anybody else having the same problem by Googling it.
     
  7. Offline

    yafos

    Learned today that none of my config works. Players can still interact or place items from the config. http://pastie.org/4666447
     
  8. Offline

    xPhAnt0omZz

    Hi! I'm an happy user of PlotMe, you did a very good work, but you should add /plotme ban username
    So the owner of a plot can deny the access to harassers, like a worldguard zone, that would make your plugin epic.
     
  9. Offline

    Druwan

    I use PlotMe in my server and the users are really satisfied, but they have requested the ability to deny access to specific players. There are many thousands of users in my server and this type of control could be heavy, so it would be useful to restrict the command so that only staff can prevent access.
     
  10. Offline

    rct3fan24

    Hey, I tried putting in the permission node "plotme.admin.*: false" for the default group. Now people can't build on the paths, but they can still build on any plot they want without owning it. Is there a way to fix this?
     
  11. Offline

    ManBeastPig

    I'm using plotme and think it's great but i have a problem.
    The world runs out. It's not that big either. You get to a cliff and then below it's a flatland with npc pepole milling about. Will the plugin take over this flat land and make it in to plots as needed? I noticed that the road turns white just before the end of the world. Thanks.
     
  12. Offline

    TNTUP

    Do you mean to deny access to all players? By default on my server, NONE can build on plots, plot owners can build, but unknown friends or griefers can't build in. If I understand correctely, you want to deny or remove a friend? Because I don't think Zachbora will add that, I see no use. If a player wants to add a friend, they can do on their plot "/plot or /plotme addfriend <playername>" Or remove a friend "/plot or /plotme remove <playername>"

    If its not that, ignore my post.
     
  13. Tested with InfintePlots world and failed. Says: [PlotMe] This is not a plot world.
     
  14. Offline

    Zahzi

    I have a problem:

    My users can claim plots and use the commands they have perms to, but cant build on the plots they claim. Only ops can build. Please help me!!!!
     
  15. Offline

    rct3fan24

    Hey, I figured out why the permissions weren't working! When me and my friend were testing, I didn't realize that being OP automatically gave you plotme.admin. I forgot to de-op him when we tested it. Yaaay!
     
  16. Offline

    BD5702

    Help Me Please, Claiming and Editing works fine for me, but anyone can edit anyone's Plots, and the roads. I can't use this if I don't want things to be greifed. Help!
    Version: Latest
    Craftbukkit 1.3.2
    Plugins:
    NoLAVA
    Mv-Inv
    DisguiseCraft
    Chatmanager
    WorldGuard
    AuthMe
    Essentials
    EssentialsSpawn
    WE
    PermissionsEx
    EssentialsChat
    Modifyworld
    SafeExplosions
    Multiverse-Core
    Plotme
    Please Help!
     
  17. Offline

    Rytharr

    Is it really that hard to read the OP? Why are you using InfinitePlots does anything in the OP mention it at all! If if your gonna try and run a server at least try and learn to read

    Here this is copied right from the op.

    Multiple maps
    If you are using MultiVerse, create the world like so :
    /mv create {NAME} normal -g PlotMe
     
  18. Offline

    Themosey

    Is there a way to allow certain items to be used on a "plot" or have a hole in the plotgrid?

    I'd like to have a city center in the middle of the plotgrid but if people can't click/use checks, furnaces, levers or doors that makes it harder. Things like chesteconomy and click to warp signs come to mind. (or even spleef)

    I didn't see an "allow all but not build" option on a plot by plot or otherwise in the commands or permissions.

    I added a (new) world, changed the config, reloaded and plotme isn't showing roads. the world is working I can claim, but there are no roads, no flat parts. Huh?

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

    ZachBora

    That means you didn't configure your world in the plotme config.
     
  20. Offline

    Alex_Gallawa

    My players can build, but not destroy on their plots
     
  21. Offline

    Darthmineboy

    Could you add a cooldown for using some commands such as /plotme clear which causes gigantic laggs on big plots.
     
  22. Offline

    iTzMag

    Great plugin, simple setup everything seems good to me ;D
     
  23. Offline

    bennie3211

    use a cooldown plugin, then u can set that u can do /plotme clear again after a time limit u want, i use this for my /home and other warps, so they cant spam with it :)

    Btw, is it possible to limit plot claims? not /plotme auto but that u can have a limit on it? maybe with permissions like plotme.limit.default that u can set to 2 or more in the config, and if you give players this permission, they can only get 2 plots in the world u have set default to 2?
     
  24. Offline

    Darthmineboy

    you can set default limit in config, and limit using permission as far is I know.
     
  25. Offline

    ZachBora

    It's in the permissions. plotme.limit.X, can replace X with * or a number.
     
  26. Offline

    bennie3211

    OMG thnx, did not know there was 1 :p
     
  27. Offline

    mfo

    only a small portion of the plot can be built on if you're not op for me. help?
     
  28. Offline

    ZachBora

    Check your spawn protection or that you didnt changed your configuration after plots generated.
     
    mfo likes this.
  29. Offline

    mfo

    Thanks for the help it works now. :)
     
  30. Offline

    Destroyer_xI

    Is there a way to auto clear expired plots? My plotme world is rather large due to the fact theres 114 pages of expired plots..
     
  31. Offline

    ZachBora

    My plot world has 665 pages of expired plots...

    At the moment there is only the /plot resetexpired <world>
    Maybe in a future update (not the next one).
     

Share This Page