Simple anti friendly-fire "friend" plugin.

Discussion in 'Archived: Plugin Requests' started by satisfiction, Aug 9, 2013.

  1. Offline

    satisfiction

    Request is for a simple ally or friend plugin that would allow "player1" to type something like "/ally player2".. in which case "player2" could then accept the alliance or deny it.

    As allies, they would then not be able to cause damage to each other during PVP. They could break this alliance at any time by typing /ally remove player2

    Suggested player commands:
    /ally playername (sends request to other player for alliance)
    /ally accept
    /ally deny
    /ally list
    /ally remove playername
    and maybe /ally removeall (removes your entire ally list)

    Suggested operator commands:
    /ally resetall (erased all alliances)

    The main focus is that if two players want to be allies, they cannot damage each other in the exact same fashion as MassiveCraft's "Factions" plugins would handle allies and faction members.

    Any help on this would be great. Factions is too heavy-duty for what I need, as is McMMO parties.

    I have seen similar posts and spoken with those who have replied on them to no avail. Can someone make this plugin for me soon?
     
  2. Offline

    foggy34

    i have a small basic understanding of java, but not much of how to relate to bukkit. i thought trying to find a way to make this plugin would be a good way to learn.

    thus far: i have written a cmdSimplifier plugin, as i call it. it simplifies a command.
    exe. /scnew teamName = /scoreboard team add teamName

    the first and only soultion so far that i have found is to use the built-into-bukkit api:scoreboard. look up scoreboard to know how to use it. scoreboard can store teams, and allow friendly fire to be turned off. but scoreboards commands are really long! thus the cmdSimplifier.
    after i input all the scoreboard commands i will upload it along with the source code. link later.

    the next step for me is to find out how to create a database? to store player info. seems like hashMaps or metadata might work, but both reset when server is restarted or reloaded. as i understand it. i think what scoreboard uses is a nft file(something like that). so will research how to use those.

    note: srry for grammer and such, am just trying to share my progress.


    EDIT:
    not sure if i am allowed to put links here.
    here is a page on curse: http://minecraft.curseforge.com/mc-mods/sccmdsimplifier/

    and the file in my google drive:
    https://docs.google.com/file/d/0B2Iyj_OV0A8GRjg4dzd3aVQzOGM/edit?usp=sharing

    Also if anyone knows of a tutorial or has info on the database part, Please pm me! foggy34
     
  3. Offline

    foggy34

  4. Offline

    satisfiction


    Thank you! Let me check it out!!! (It's currently under moderation! :p)
     

Share This Page