Cage (Makes instants cages)

Discussion in 'Plugin Requests' started by Noobinho, Sep 3, 2016.

Thread Status:
Not open for further replies.
  1. Offline

    Noobinho

    (Sorry for the poor English. I used the google translator)

    Plugin category: Admin Tools

    Minecraft version: 1.8.8

    Suggested name: SimpleCagePlayer
    What I want:

    This plugin would create a cage for a particular player.
    He first detect if the area to create the cage is free (area: 3 length / width and 4 high)
    - If you are free:
    * It would create a cage like this: http://i.imgur.com/JitUgD0.png
    * Would teleport the player to the cage
    - If you are not free, would test 10 blocks up

    Ideas for commands:
    /cage <player>
    (also: /prender, /jail)

    Ideas for permissions: scs.command

    When I'd like it by: As soon as possible

    (Sorry for the poor English. I used the google translator)
     
  2. Offline

    DoggyCode™

    Ooooo, this is cool. But what if the player enderpearls out? I mean, a lot could happen. Commands like /Spawn /Warp /tpa would be possible unless we make it not. Player can easily get killed by another player, etc...
     
    Noobinho likes this.
  3. pseudocode:
    Code:java
    1. if (player is in cage) {
    2. cancel PlayerTeleportEvent for player
    3. cancel EntityDamageEvent for player
    4. }
     
    Noobinho likes this.
  4. Offline

    Jakeeeee

    I'll do this, I'll post back later today telling you my process/completion.
     
    Noobinho likes this.
  5. Offline

    DoggyCode™

    Yeah yeah, I know! I was just sorta asking if he wanted it like that. Like, be more specific.

    EDIT:
    @Jakeeeee

    Already done, sorta.
    [​IMG]
     
    Noobinho likes this.
  6. Offline

    Jakeeeee

    I'll just post mine on bukkit, I added support to customize the cages. Was only around 15 minutes more work.
     
    Noobinho likes this.
  7. Offline

    DoggyCode™

    Ok :)
     
    Noobinho likes this.
  8. Offline

    Noobinho

    It would be nice if he could not get out, but the question of being killed by other players I think so


    #EDIT
    Killed by other players: Yes
    Cage out: No

    (Sorry for the poor English. I used the google translator)


    @Jakeeeee
    You finished? I'm anxious
     
    Last edited by a moderator: Sep 4, 2016
  9. Offline

    Jakeeeee

    Completed.
    Features:
    - Able to customize how the cage looks(but the only blocks it will be built out of is bedrock, I'll update it later)
    - In game commands to customize the cage, it will give you a wand, then you select two points, and anything between the two points that is bedrock will be added. It is tricky if you do it in config (only do it if you know what these numbers mean http://pastebin.com/2uZztBue ).
    - Able to uncage people
    - People that are caged cant:
    1. Teleport
    2. Break/Place blocks
    - Automatically removes cages when server restarts/reloads/closes, and when a player is uncaged.
    - Default cage is
    Code:
    X-Offsets: 0 1 1 1 1 2
    Y-Offsets: 1 0 1 1 3 1
    Z-Offsets: 1 1 0 2 1 1
    
    or http://i.imgur.com/JitUgD0.png

    How to change the cage:
    - Do /cage givewand
    - Build your cage out of bedrock
    - Select two points that puts your build between the points
    - Stand where you want the cage to build around the player
    - Type /cage setcage
    - Then /cage confirm

    Download Link To Plugin: https://www.dropbox.com/s/zna9u9b5ceufogg/Cages.jar?dl=0
    Download Link To Source: https://www.dropbox.com/s/a0e77z3qqdwg2ic/Cages-Source Code.zip?dl=0
     
    Last edited: Sep 4, 2016
    Toddin, Noobinho and DoggyCode™ like this.
  10. Offline

    Noobinho

    Thanks <3

    @Jakeeeee

    You can add a method to translate messages ?
     
    Last edited: Sep 5, 2016
  11. Offline

    Toddin

    @Jakeeeee Hey I'Am Traslate Your Plugin =) <EDIT by Moderator: redacted mediafire>
     
    Last edited by a moderator: Sep 8, 2016
  12. Online

    timtower Administrator Administrator Moderator

    Just translating and modifying is pretty rude.
     
Thread Status:
Not open for further replies.

Share This Page