[INACTIVE][SEC/FUN] CatchMe - The Capture Region plugin [740]

Discussion in 'Inactive/Unsupported Plugins' started by Scorpia, Apr 17, 2011.

  1. Offline

    Scorpia

    CatchMe - The Capture Region Plugin
    Version: v0.4.0

    This is a PvP plugin in which you have to gain control of an area!

    If your group controls an area, you will be periodically rewarded with money.
    But, be careful! Any other group can steal this area from you.

    You or one of your group's members must occupy an area defined as a WorldGuard region.
    If uninterrupted during a short timer, your group will capture the area and will periodically earn money in the form of iConomy currency.

    If an enemy enters during the capture phase, it gets cancelled, and you will be forced to clear the area and start again. Unoccupied areas return to neutral status after a period of time.

    Most everything is configurable.

    Download CatchMe
    https://github.com/Karnatos/CatchMe/tree/master/build040


    Source available
    https://github.com/Karnatos/CatchMe

    Any Problem ?
    Open a new issue.
    https://github.com/Karnatos/CatchMe/issues

    Features
    • Commands

      /cm info <area_name>
      /cm addarea <area_name>
      /cm removearea <area_name>
      /cm addgroup <area_name> <group_name>
      /cm removegroup <area_name> <group_name>
      /cm flag <area_name> <flag_name> <value>
      /cm save
      /cm list [#page]

      Be Careful
      If you use Permissions, you've to give the permission 'cachme.cm'

    • The Catching Area

      How to define it ?
      Show Spoiler

      A catching area is defined with 'flags':
      • duration : number of periods before becoming neutral(default value: 1)
      • period : delay in seconds between each earn money (default value: 900)
      • time-catch : delay in seconds before capturing the area (default value: 30)
      • money-amount : money earned after each period (default value: 0)
      • ffa : if set true, groups'players are allowed to capture the area for their own profit. (default value: false)
      And catchgroups which will be the only groups allowed to capture the area.

      You can define it with ingame commands or manually.

      In-game commands

      To define it, just open the chat and write : '/cm addarea myarea'

      You'll have to set groups with : '/cm addgroup myarea mygroup1' '/cm addgroup myarea mygroup2' (groups must exist !)

      And if you want to change default options : '/cm flag catching-<flag> X' (see flags in the next part)

      Groups

      CatchMe integrate Lists, Permissions and Factions.

      You can specify as a group, any group created via those plugins.

      Warning : with Factions, if you change the tag of a faction, the modification will not be applied in catchgroups.


      Editing config file

      To define it, edit catchme/worlds/your-world/regions.yml (replace your-world by your current world name), or create it if it doesn't exist.

      The file is structured as follows :

      Code:
      regions:
                            myWorldGuardRegion1:
                              flags: {catching-area: Y, catching-duration: X, catching-period: X, catching-time-catch: X, catching-money-amount: X, catching-flag: Z}
                              catchgroups: [myGroup1, myGroup2]
                            myWorldGuardRegion2:
                              flags: {catching-area: Y, catching-duration: X, catching-period: X, catching-time-catch: X, catching-money-amount: X, catching-flag: Z}
                              catchgroups: [myGroup1, myGroup3, myGroup4]
      Y is allow or deny
      X is a positive integer value.
      Z is on/true/yes/1 or off/false/no/0.
      If you don't specify one of theses flags, the default value will be used.

      For catching-duration, if you use 0 as value, the duration will be infinite.


      Example
      Show Spoiler

      Code:
      regions:
                            totoReg:
                              flags: {catching-area: allow, catching-period: 10, catching-time-catch: 5}
                              catchgroups: [myGroup1, myGroup2]
                            titi:
                              flags: {catching-area: deny, catching-duration: 30}
      In this example, the region totoReg will be an enabled catching area with these caracteristics :
      • duration: 1 periods (default)
      • period: 10 seconds
      • time-catch: 5 seconds
      • money-amount: 0 (default)
      The region titi will not be a catching area because of catching-area: deny.


      By default, a WorldGuard region not explicitly tagged (in CatchMe regions file) with catching-area: allow will be considered as deny

    • The Lang file
      Show Spoiler

      You can redefine all ingame messages.
      To do that, create path /catchme/lang/ (if not exists) in directory plugin.
      Then, create file lang.yml. Now you have MyMinecraftServer/plugin/catchme/lang/lang.yml

      Copy/Paste the following code (here are default values).

      Code:
      lang:
                            receive-money: You receive
                            now-controls: now controls
                            from: from
                            enter-catchzone: You enter the catchzone
                            controlled-by: controlled by
      You don't have to specify all lines, just the ones you want to change the default text.

      Then, you just have to replace the sample text by whatever you want.
    Notes

    • All file modifications need a reload of all plugins or a reboot to be taken in count.
    • If you have a problem with the YAML (files with .yml) syntax, check out this website http://yaml-online-parser.appspot.com/
    TODO
    Show Spoiler

    Priority
    • Add decreasing time depending on team's players number
    • Add area catpure effects (which ?)
    Non priority
    • Add dependencies system (an area can be captured only if related areas are already captured)
    • Add chunk as region alternative


    Dependencies
    • CraftBukkit 740 (mandatory)
    • WorldGuard 4.0 (mandatory)
    • Permissions 2.7
    • iConomy 4.6.5
    • Lists 0.1.0
    • Factions 1.1.7
    Changelog
    Show Spoiler

    Version 0.4.0
    • Add Factions integration
    • Add FFA flag
    • Remove message if money-amount is 0
    • Change default values :
      • money-amount from 5 to 0
      • duration from 12 to 1
    Version 0.3.0
    • Add Lists integration
    • Add ingame commands
    • Add system messages & ingame messages
    Version 0.2.1
    • Fixed region loading bugs
    • Fixed minor bugs if plugin disabled (fail to load for any reason)
    Version 0.2
    • Change catch area flags and group in a proper file (catchme/worlds/"my-world"/regions.yml)
    • Add infinite duration
    • Re-structured file README
    Version 0.1
    • First Release
     
    Raijojp and Piquemal like this.
  2. Offline

    Sich

  3. Offline

    2Bucks

    Maybe have the CatchMe thing be a game, giving points rather than money for being in the area, and after "x" hours, whoever has the msot points wins
     
  4. Offline

    Sich

    ok, forget what I say about GroupManager, it work fine. But it's case sensitive...
    But the support for the Towny can be very interesting :)
     
  5. Offline

    Craigtut

    It sounds great! My problem is lack of experience and can't figure out how to get it working. I was able to get the region added but none of the flags will add whenever I try in game or in the yml file. Could you provide more instruction on how to add flags?

    Edit: I have gotten the flags to work, but can't capture the regions. It displays that I have entered the region but won't capture. Any ideas?
     
  6. Offline

    Scorpia

    Yes, you have to stay during "catching-catch-time" seconds in the region. The default value is set to 30 seconds (if not specified).

    After "catching-catch-time" seconds, you'll see a message like "X now controls Y"

    I'll make it a bit clearer.
     
  7. Offline

    BioRage

    Thanks, I suggest you suggest me to use Factions?

    Cheers, It's a compliant to this plugin1
     
  8. Offline

    Specops343

    Yay factions support! Now to figure out how this works...

    Alright so here's an idea for bonuses: Mcmmo support-Groups/Teams/Whatever controls the capture point gets bonuses to certain mcmmo skills.

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

    Haekon

    Fixed.
     
  10. Offline

    Scorpia

    @Haekon: Thank you very much, english isn't my mother tongue ^^

    @Specops343: Noticed ! I'll take a look at it.
     
  11. Still waiting for chunks... and maybe a way to use permissions USER INFO as a way to set team

    I guess I should make my own plugin... It will probably suck though.
     
  12. Offline

    Hagon94

    Make a king of the hill or checkpoint system type plugin that's standalone PLzzz :3 With PVP in mind.
     
  13. Offline

    Scorpia

    @battlefielder128: i didn't have much time but this plugin is still open source and you're free to fork it and make you own modifications.

    If anyone wants to continue this project, feel free to contact me.
     
  14. Offline

    Craigtut

    I keep getting an error that streams down my console every hour or so for about 5 minutes. Sometimes it never stops. Could you explain why this might be or what this even means?

    Code:
    2011-05-17 23:17:54 [SEVERE] Could not pass event PLAYER_MOVE to catchme
    java.lang.NullPointerException
        at org.catchservices.catchme.CatchRegions.playerLookupCatchingArea(CatchRegions.java:68)
        at org.catchservices.catchme.CatchPlayerListener.onPlayerMove(CatchPlayerListener.java:25)
        at org.bukkit.plugin.java.JavaPluginLoader$7.execute(JavaPluginLoader.java:242)
        at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:59)
        at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:257)
        at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:130)
        at net.minecraft.server.Packet10Flying.a(SourceFile:126)
        at net.minecraft.server.NetworkManager.a(NetworkManager.java:195)
        at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:74)
        at net.minecraft.server.NetworkListenThread.a(SourceFile:100)
        at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:370)
        at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:285)
        at net.minecraft.server.ThreadServerApplication.run(SourceFile:394)
     
  15. Offline

    BioRage

    Don't let this plugin die!

    Could you take a look @ compatibility with the Rift's plugin?

    Edit: Ah, your not continuing it anymore.. :(
     
  16. Offline

    MonsieurApple

    Considered inactive.
     
  17. Offline

    Orcem12

    Last edited by a moderator: May 13, 2016

Share This Page