Flags

Discussion in 'Archived: Plugin Requests' started by mcvillam, Apr 17, 2014.

  1. Offline

    mcvillam

    Hey!
    My idea for a capture-the-flag like server is that you have a main block(air) and more blocks linked to it (white wool) and if you place a block the other blocks get replaced. I know that there are ctf plugins including this feature, but i only need this part.
     
  2. Online

    timtower Administrator Administrator Moderator

    mcvillam I have no idea what you want, could you post a screenshot?
     
  3. Offline

    mcvillam

    So for example there is a building with white wools and a vertical 3x3 frame with a hole inside. And when you place a colored wool in the frame all the white blocks in the building get replaced.
     
  4. Offline

    Onlineids

    Is.. is this english.. it looks like it but im not sure :eek:
     
  5. Onlineids i think he wants it so there is a building made from white wool with a 3x3 square somewhere with a gap in the center . when a coloured wool gets placed in the gap the white wool gets turned into a different block
     
  6. Offline

    mcvillam

    It's something like this. If you place a block in the obsidian frame, blocks on the outside get replaced. :D[​IMG]
     
  7. Offline

    Onlineids

    thats all you want when a block is surrounded by obsidian make the outside thing u made?
     
  8. Offline

    mcvillam

    No... xD
    I place a block which is going to be the main sample(air in picture) then place other blocks (white wool in picture) in the world. And when i replace the sample block, all the other blocks linked to it get replaced.
     
  9. Do you want all the wool blocks in a area or the world?
     
  10. Offline

    mcvillam

    Not specifically wool blocks but blocks at configured coords.
     
  11. [quote uid=90914046 name="mcvillam" post=2420180]Not specifically wool blocks but blocks at configured coords.[/quote]

    ok i will see if i can make it

    i have made it it supports two teams and multiple locations for the coordinates
    link: <Edit by Moderator: Redacted mediafire url>

    the config has a few things inside of it

    Show Spoiler
    blockstochangex , blockstochangey and blockstochangez these are lists where you put the x y z in each one and the blocks there will change to the block in the middle of the frame (not including air)

    then x, y ,z are the coordinates of the middle of the frame

    then they are repeated these are the coordinates of the second frame and the coordinates of the blocks to change for the second frame



    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: Nov 3, 2016
  12. Offline

    mcvillam

    Thank you very much, but could you add one more team please? And also it doesn't seem to work.

    And it crashed with this: (the server is running bukkit 1.6.2)


    Show Spoiler
    Code:
    2014-04-18 12:18:53 [SEVERE] Could not pass event BlockPlaceEvent to Blockreplacer v1.0
    org.bukkit.event.EventException
    at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:427)
    at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:62)
    at org.bukkit.plugin.SimplePluginManager.fireEvent(SimplePluginManager.java:477)
    at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:462)
    at org.bukkit.craftbukkit.v1_6_R2.event.CraftEventFactory.callBlockPlaceEvent(CraftEventFactory.java:112)
    at net.minecraft.server.v1_6_R2.ItemBlock.processBlockPlace(ItemBlock.java:89)
    at net.minecraft.server.v1_6_R2.ItemBlock.interactWith(ItemBlock.java:73)
    at net.minecraft.server.v1_6_R2.ItemStack.placeItem(ItemStack.java:79)
    at net.minecraft.server.v1_6_R2.PlayerInteractManager.interact(PlayerInteractManager.java:389)
    at net.minecraft.server.v1_6_R2.PlayerConnection.a(PlayerConnection.java:628)
    at net.minecraft.server.v1_6_R2.Packet15Place.handle(SourceFile:58)
    at net.minecraft.server.v1_6_R2.NetworkManager.b(NetworkManager.java:296)
    at net.minecraft.server.v1_6_R2.PlayerConnection.e(PlayerConnection.java:116)
    at net.minecraft.server.v1_6_R2.ServerConnection.b(SourceFile:37)
    at net.minecraft.server.v1_6_R2.DedicatedServerConnection.b(SourceFile:30)
    at net.minecraft.server.v1_6_R2.MinecraftServer.t(MinecraftServer.java:590)
    at net.minecraft.server.v1_6_R2.DedicatedServer.t(DedicatedServer.java:226)
    at net.minecraft.server.v1_6_R2.MinecraftServer.s(MinecraftServer.java:486)
    at net.minecraft.server.v1_6_R2.MinecraftServer.run(MinecraftServer.java:419)
    at net.minecraft.server.v1_6_R2.ThreadServerApplication.run(SourceFile:582)
    Caused by: java.lang.IndexOutOfBoundsException: Index: 1, Size: 1
    at java.util.ArrayList.rangeCheck(Unknown Source)
    at java.util.ArrayList.get(Unknown Source)
    at com.gmail.lproductions.woolreplacer.woolreplacer.onblockplaced(woolreplacer.java:43)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
    at java.lang.reflect.Method.invoke(Unknown Source)
    at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:425)
    ... 19 more
    2014-04-18 12:20:37 [SEVERE] Could not pass event BlockPlaceEvent to Blockreplacer v1.0
    org.bukkit.event.EventException
    at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:427)
    at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:62)
    at org.bukkit.plugin.SimplePluginManager.fireEvent(SimplePluginManager.java:477)
    at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:462)
    at org.bukkit.craftbukkit.v1_6_R2.event.CraftEventFactory.callBlockPlaceEvent(CraftEventFactory.java:112)
    at net.minecraft.server.v1_6_R2.ItemBlock.processBlockPlace(ItemBlock.java:89)
    at net.minecraft.server.v1_6_R2.ItemBlock.interactWith(ItemBlock.java:73)
    at net.minecraft.server.v1_6_R2.ItemStack.placeItem(ItemStack.java:79)
    at net.minecraft.server.v1_6_R2.PlayerInteractManager.interact(PlayerInteractManager.java:389)
    at net.minecraft.server.v1_6_R2.PlayerConnection.a(PlayerConnection.java:628)
    at net.minecraft.server.v1_6_R2.Packet15Place.handle(SourceFile:58)
    at net.minecraft.server.v1_6_R2.NetworkManager.b(NetworkManager.java:296)
    at net.minecraft.server.v1_6_R2.PlayerConnection.e(PlayerConnection.java:116)
    at net.minecraft.server.v1_6_R2.ServerConnection.b(SourceFile:37)
    at net.minecraft.server.v1_6_R2.DedicatedServerConnection.b(SourceFile:30)
    at net.minecraft.server.v1_6_R2.MinecraftServer.t(MinecraftServer.java:590)
    at net.minecraft.server.v1_6_R2.DedicatedServer.t(DedicatedServer.java:226)
    at net.minecraft.server.v1_6_R2.MinecraftServer.s(MinecraftServer.java:486)
    at net.minecraft.server.v1_6_R2.MinecraftServer.run(MinecraftServer.java:419)
    at net.minecraft.server.v1_6_R2.ThreadServerApplication.run(SourceFile:582)
    Caused by: java.lang.IndexOutOfBoundsException: Index: 1, Size: 1
    at java.util.ArrayList.rangeCheck(Unknown Source)
    at java.util.ArrayList.get(Unknown Source)
    at com.gmail.lproductions.woolreplacer.woolreplacer.onblockplaced(woolreplacer.java:43)
    at sun.reflect.GeneratedMethodAccessor14.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
    at java.lang.reflect.Method.invoke(Unknown Source)
    at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:425)
    ... 19 more


    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: Jun 7, 2016
  13. Online

    timtower Administrator Administrator Moderator

  14. Sorry it is a 1.7 plugin ad i am away for the weekend i shall remake it in 1.6 either monday or sunday
     
  15. Online

    timtower Administrator Administrator Moderator

    Looks like an outofbounds to me, not really 1.6 or 1.7 right?
     
  16. Oh yea i just thought it was because i made it with bukkit 1.7.4 and he ran it on a 1.6.4 server
    mcvillam
    Can i see your config
     
  17. Offline

    mcvillam

    Config:
    Show Spoiler

    blockstochangex:
    - -54
    - -55
    - -53
    blockstochangey:
    - 93
    blockstochangez:
    - 245
    # coordinates for the block in the middle of the frame
    x: -59
    y: 93
    z: 245
    #coordinates for the 2nd block in the middle of the other teams frame
    x2: 3
    y2: 2
    z2: 1
    blockstochangex2:
    - 2
    blockstochangey2:
    - 2
    blockstochangez2:
    - 2
     
  18. i see the problem i forgot to say you need to put all the coordinates in so for every coordinate in blockstochangex there needs to be one in blockstochangey and blockstochangez and it does support two teams thats what the other values in the config are for you just use them in the same way just with different coordinates
     
  19. Offline

    mcvillam

    Oh, but i've tried it with just one and it didn't do anything.
     
  20. it may be because it was compiled for 1.7.4 server why it doesn't work once i get home i will remake it in 1.6.4
     
  21. Online

    timtower Administrator Administrator Moderator

    API didn't really changed between those versions.
     
  22. mcvillam sorry it took so long been really busy but here it is <Edit by Moderator: Redacted mediafire url>
    i tried the other version on 1.6.4 and it didn't work but this one should
     
    Last edited by a moderator: Nov 3, 2016

Share This Page