Inactive [FUN] CraftBall - Play sports

Discussion in 'Inactive/Unsupported Plugins' started by nisovin, Jun 4, 2011.

  1. Offline

    nisovin

    CraftBall - Play ball-related sports on your server!

    This plugin has been taken over by JayEffKay:
    http://dev.bukkit.org/server-mods/craftball/

    This plugin allows you to play sports like soccer on your server. A video is the best way to show how the plugin works, so here you go:



    Usage

    Just throw (with Q usually) your configured ball item onto your configured field, and run up to the ball to kick it. Server ops can use the /craftballreload command to reload the configuration.

    Configuration

    The zip file contains an example configuration file. This is what it looks like:

    Code:
    fields:
        field1:
            region:
                - 314,66
                - 330,66
                - 330,84
                - 314,84
            region-y: 78
            ball-item: 341
            enable-kick: true
            horizontal-kick-power: 0.8
            vertical-kick-power: 0.1
            enable-throw: true
            throw-power: 0.5
            pickup-delay: 20
    To define a field region, you must list each point on the region. Any polygon will work. Remember that with rectangles you will need to specify all four corners. The coordinates are x,z coordinates, and the y coordinate for the field is specified by region-y. The easiest way to get coordinates is to use the wand tool from WorldEdit, or any other plugin that can give block coordinates.

    If you're trying to find coordinates just using F3, then round down your X and Z coordinates, and subtract 2.62 from your Y coordinate. For example, if your current position given by F3 is 57.41, 67.62, 130.59, then your X is 57, your Z is 130, and your Y is 65.

    The remaining options are:
    • ball-item: The item id of the ball object (341 is a slime ball)
    • enable-kick: Whether to allow kicking for this field
    • horizontal-kick-power: The initial horizontal velocity when kicking
    • vertical-kick-power: The initial vertical velocity when kicking
    • enable-throw: Whether to enable the throw speed modifier for this field
    • throw-power: The initial velocity when throwing
    • pickup-delay: The delay before an item can be picked up (kicked) after throwing, in server ticks (20 ticks per second)
     
    JayEffKay, tris-broXP and kahlilnc like this.
  2. Offline

    Alberto

    It doesn't work, I don't know why, because when I throw the ball I pick it up again, I tried to configure the file, but this still without working, help, here you have my file.
    fields:
    field1:
    region:
    - 83,-58
    - 83,-54
    - 91,-58
    - 91,-58
    region-y: 78
    ball-item: 341
    enable-kick: true
    horizontal-kick-power: 0.8
    vertical-kick-power: 0.1
    enable-throw: true
    throw-power: 0.5
    pickup-delay: 20

    If is something wrong, say it please.
     
  3. Code:
    19:17:06 [SEVERE] Error occurred while enabling CraftBall v1.0 (Is it up to date
    ?): null
    java.lang.NullPointerException
            at com.nisovin.craftball.CraftBall.loadConfig(CraftBall.java:41)
            at com.nisovin.craftball.CraftBall.onEnable(CraftBall.java:22)
            at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:125)
            at org.bukkit.plugin.java.JavaPluginLoader.enablePlugin(JavaPluginLoader
    .java:799)
            at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManage
    r.java:253)
            at org.bukkit.craftbukkit.CraftServer.loadPlugin(CraftServer.java:140)
            at org.bukkit.craftbukkit.CraftServer.loadPlugins(CraftServer.java:118)
            at net.minecraft.server.MinecraftServer.e(MinecraftServer.java:232)
            at net.minecraft.server.MinecraftServer.a(MinecraftServer.java:219)
            at net.minecraft.server.MinecraftServer.init(MinecraftServer.java:146)
            at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:283)
            at net.minecraft.server.ThreadServerApplication.run(SourceFile:422)
    This is what I get. It doesn't work for me neither on 818 and later.
     
  4. Offline

    nisovin

    You have some extra hyphens in there. Also, your corners are out of order.
    Not sure what's wrong with yours. Are you getting any errors? Are you sure your coordinates are correct?
    Unsure about yours also. Same questions.
    You have the same point listed twice.
    Did you add the config file?
     
  5. Offline

    canna

    ""CraftBall - Play ball-related sports on your server! Current Version: 1.0""
    Ive also tried this after updating craftbukkit_snapshot to [860] i get
    12:21:43 [SEVERE] Error occurred while enabling CraftBall v1.0 (Is it up to date?): null
    java.lang.NullPointerException
    at com.nisovin.craftball.CraftBall.loadConfig(CraftBall.java:41)
    at com.nisovin.craftball.CraftBall.onEnable(CraftBall.java:22)
    at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:125)
    at org.bukkit.plugin.java.JavaPluginLoader.enablePlugin(JavaPluginLoader.java:799)
    at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManager.java:253)
    at org.bukkit.craftbukkit.CraftServer.loadPlugin(CraftServer.java:140)
    at org.bukkit.craftbukkit.CraftServer.loadPlugins(CraftServer.java:118)
    at net.minecraft.server.MinecraftServer.e(MinecraftServer.java:232)
    at net.minecraft.server.MinecraftServer.a(MinecraftServer.java:219)
    at net.minecraft.server.MinecraftServer.init(MinecraftServer.java:146)
    at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:283)
    at net.minecraft.server.ThreadServerApplication.run(SourceFile:422)
    i did'nt get any errors on 818 with craftball the only problem ive had since minecraft beta 1.5_1 is my slime i cannot use i when left or right clicking any idea whats wrong
     
  6. Offline

    kahlilnc

    They are I use world edit and they kinda look as yours do.
     
  7. Offline

    thefoxeur

    Very good plugin , he work perfectly (Craftbukkit 860) in us Big Stadium and Tennis :)

    Thx

    Thefoxeur
     
  8. Offline

    LeGenDaryX

    I think many people forget to do (minus,substract) - 2.62 from the Y coordinates
     
  9. Offline

    monir

    Best plugin ever here is a session from our server
     
  10. Offline

    azngamerzer

    works like a charm just needed to reload config ingame and it worked
     
  11. Offline

    Alberto

    I tried it again, ni regions are equal, and still without working:
    fields:
    field1:
    region:
    - 153,-56
    - 123,-56
    - 123,-39
    - 153,-39
    region-y: 71
    ball-item: 341
    enable-kick: true
    horizontal-kick-power: 0.8
    vertical-kick-power: 0.1
    enable-throw: true
    throw-power: 0.5
    pickup-delay: 20
     
  12. Offline

    thefoxeur

    Hello,

    I Have make A basket-ball , football , tennis , Game , with your plugin , It's very good , with 3 field (basket) , if you want to see this , you can join : 46.105.96.229

    Thefoxeur
     
  13. Offline

    shock

    the plugin dont work

    fields:
    fields1:
    region:
    - 529,212
    - 587,250
    - 529,250
    - 587,212
    region-y: 73
    ball-item: 341
    enable-kick: true
    horizontal-kick-power: 0.8
    vertical-kick-power: 0.1
    enable-throw: true
    throw-power: 0.5
    pickup-delay: 20



    [​IMG]

    EDIT: It works now very nice plugin
     
  14. Offline

    4SS4SSlN

    I get this if i type /craftballreload

    org.bukkit.command.CommandException: Unhandled exception executing command 'craftballreload' in plugin CraftBall v1.0 at org.bukkit.command.PluginCommand.execute(PluginCommand.java:37) at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:128) at org.bukkit.craftbukkit.CraftServer.dispatchCommand(CraftServer.java:287) at net.minecraft.server.NetServerHandler.handleCommand(NetServerHandler.java:712) at net.minecraft.server.NetServerHandler.chat(NetServerHandler.java:678) at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:671) at net.minecraft.server.Packet3Chat.a(Packet3Chat.java:32) at net.minecraft.server.NetworkManager.b(NetworkManager.java:226) at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:75) at net.minecraft.server.NetworkListenThread.a(SourceFile:105) at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:399) at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:309) at net.minecraft.server.ThreadServerApplication.run(SourceFile:422) Caused by: java.lang.NullPointerException at com.nisovin.craftball.CraftBall.loadConfig(CraftBall.java:41) at com.nisovin.craftball.CraftBall.onCommand(CraftBall.java:30) at org.bukkit.command.PluginCommand.execute(PluginCommand.java:35) ... 12 more
     
  15. Offline

    manolorodero

    This is not working AT ALL. i really need help because i really want to play soccer. i dont know what i am doing wrong. PLEASE HELP!!!


    fields:
    field1:
    region:
    - 247,448
    - 190,448
    - 190,483
    - 247,483
    region-y: 69
    ball-item: 341
    enable-kick: true
    horizontal-kick-power: 0.8
    vertical-kick-power: 0.1
    enable-throw: true
    throw-power: 0.5
    pickup-delay: 20

    oh and BTW i am running my server on a mac so if there is a different way to do this for mac PLEASE TELL!!!
     
  16. Offline

    LoadingOnly

    I to dont know how to do this i think you should make video of how to make this work
     
  17. Offline

    Veve

    I dont know, but it doesnt work for me :/ pls help..
    Code:
    fields:
        field1:
            region:
                - 1082,168
                - 1133,168
                - 1133,202
                - 1082,202
            region-y: 65
            ball-item: 341
            enable-kick: true
            horizontal-kick-power: 0.8
            vertical-kick-power: 0.1
            enable-throw: true
            throw-power: 0.5
            pickup-delay: 20
    What is wrong?
     
  18. Offline

    matrixemil

    Please make guide how config this plugin
     
  19. Offline

    scottthemaster

    Hey guys, i think i almost have it, i have all the x,y,z,f cordinates for each corner of my field, what do i do from there?
    and how do i get the region-y? if i get help with this ill post a vid on it tommorow for help 2 u guys

    Allready i know that i have to change my region-Y from 78 to something eltse, but i dont know how to get that, please help

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

    scottthemaster

    fields:
    field1:
    region:
    1- -129,-354
    2- -110,-354
    3- -110,-372
    4- -129,-372
    region-y: 95
    ball-item: 341
    enable-kick: true
    horizontal-kick-power: 0.8
    vertical-kick-power: 0.1
    enable-throw: true
    throw-power: 0.5
    pickup-delay: 20
     
  21. Offline

    thefoxeur

    fields:
    field1:
    region:
    - -129,-354
    - -110,-354
    - -110,-372
    - -129,-372
    region-y: 95
    ball-item: 341
    enable-kick: true
    horizontal-kick-power: 0.8
    vertical-kick-power: 0.1
    enable-throw: true
    throw-power: 0.5
    pickup-delay: 20​
     
  22. Offline

    zibimucha

    create a baseball plugin with baseball stick xD
     
  23. Offline

    R4TH4CK3R

    My config:

    fields:
    field1:
    region:
    - 24,31
    - 24,40
    - 45,40
    - 45,31
    region-y: 63
    ball-item: 341
    enable-kick: true
    horizontal-kick-power: 0.8
    vertical-kick-power: 0.4
    enable-throw: true
    throw-power: 0.6
    pickup-delay: 20

    Please can you tell the size (XxYxZ) of your field, I want one that looks just like that!
    ------------------------------------------------------------------------------------------------------------------------------
    Join my server:

    Hamachi ID: -R4TH4CK3R-
    Password: 123
    IP: 5.191.72.86:25565
    Online Map (acess from the browser): 5.191.72.86:8123

    Have fun!

    R4TH4CK3R
    ------------------------------------------------------------------------------------------------------------------------------
     
  24. Offline

    Plague

    please update to latest recommended build (title says it's not)
     
  25. Offline

    devilx143

    you should make it "noob"-friendly, like using an item to define the field, or, if someone kind enough to make a BASIC(really basic) video tutorial of him defining a field
     
  26. Offline

    kevinminer

    how to make a field to let it work
     
  27. Offline

    Nicola

    hi... i got a really big problem... i set all the corners but i don't know why but i can't kick the ball... the corners are all right because the throw power works perfectly inside the area but i can't kick the ball :'( so this is my field:

    fields:
    field1:
    region:
    - 64,-73
    - 109,-73
    - 109,-152
    - 64,-152
    region-y: 70
    ball-item: 341
    enable-kick: true
    horizontal-kick-power: 0.8
    vertical-kick-power: 0.5
    enable-throw: true
    throw-power: 0.5
    pickup-delay: 1000
     
  28. Offline

    undeadmach1ne

    working for me on rb 1000. it took me a few tries to get the field set up properly but the problem was that i was being stupid and not reading the instructions properly. great plugin, thanks so much :D going to try to recreate hacky sack and make it a sacred sport played in the hidden temples of far off lands on one of my worlds :)
     
  29. Offline

    FullDell

    please 1.7.3 version thanks ^^ :D
     
  30. @Build 1000
     
  31. Offline

    LeonidasPL

    Can you update this to CB 1000?
    Thanks.
     

Share This Page