Inactive [FUN] nSpleef 0.4.3 - The first spleef plugin for CB! [1337]

Discussion in 'Inactive/Unsupported Plugins' started by niccholaspage, Mar 2, 2011.

  1. Offline

    niccholaspage

    nSpleef - The spleef plugin:
    Version: v0.4.3 - CB 1337


    BEFORE SAYING ITS NOT WORKING READ THIS

    nSpleef is a spleef plugin I've been working on for a while. After weeks, I finally finished it.

    How to setup arenas: (Use a bowl to select points)



    How to create, join, leave, and delete games: (Because we all know the commands section below isn't enough!)



    Features:
    • Countdown system
    • Restoring arenas
    • Multiple game & arena support
    • Multiple floor support
    • Ready system
    • Knows when people win and lose.
    • On winning, the plugin will tell everyone who won.
    • On losing, the plugin will tell everyone "username is out!"
    • When the game is over, everyone will get teleported to there old location.
    • iConomy, BOSEconomy & EssentialsEconomy support! At the end of each game, if the money argument was entered in creategame, the winner will win how much money entered in times the number of players (For EX, if 2 players are playing and both gave up 5 coins, the winner will get 10 at the end)
    • If set in the config, a player can get kicked out of a game of they don't type ready for a configurable amount of seconds.
    • Permissions/GroupManager support. If not found, nSpleef will allow OPs to use nSpleef.admin.* and everyone to use nSpleef.member.*
    Commands:
    • /spleef define arena - Defines arena, check video above
    • /spleef deletearena arena - Deletes arena
    • /spleef creategame game arena <money> - Creates a game. First argument is the game name you want, second argument is what arena it should be on. Third argument is how much money is required to join the game. Must have nSpleef.member.wager to create a game with the money argument.
    • /spleef deletegame game - Deletes the game. If you did not make the game you cannot delete it. If you have nSpleef.admin.deleteanygame, you can delete any game.
    • /spleef join game - Join a game.
    • /spleef leave - Leave the game you are currently in.
    • /spleef list - Lists all the arenas and games.
    • /spleef ready (or /ready) - Silent command for ready
    • /spleef forceready - Forces the game to start
    • /spleef forcejoin player arena - Makes a player join an arena
    • /spleef forceleave player - Forces a player to leave
    • /spleef help <page> or /spleef ? <page> - Help. Each page shows 9 commands.
    Permission Nodes:
    Member Nodes (open)
    nSpleef.member.creategame
    nSpleef.member.deletegame
    nSpleef.member.join
    nSpleef.member.leave
    nSpleef.member.list
    nSpleef.member.wager

    Admin Nodes (open)
    nSpleef.admin.define
    nSpleef.admin.deleteanygame
    nSpleef.admin.deletearena
    nSpleef.admin.forceready
    nSpleef.admin.forcejoin
    nSpleef.admin.forceleave


    Configuration:
    • instantmine - If true, blocks will be instantly mined.
    • canplaceblocks - If true, the player can place blocks during the game.
    • persistentgames - If true, games will be saved when nSpleef gets disabled so they get loaded on enable
    • (The three below only apply if the game had the money argument entered)
    • givemoneyonleave - If true and the player uses /spleef leave and is in a game their money given back
    • givemoneyondisconnect - If true and the player disconnects while in a game, their money will be given back
    • givemoneyonkick - If true and the player gets kicked from the join kicker, their money will be given back
    • joinkickertime - If this is not 0, then if someone joins a game and doesn't type ready by however much seconds the kicker time is set to, they will get kicked.
    Servers using nSpleef:
    • freedsuniverse.dyndns-server.com (PatrickFreed's server)
    • siegecraft.no-ip.info (Sorce's server)
    • minecraft.tniwwt.net (Jonathan Bloom's server)
    • mc.mcserverlist.net (Yep, the MC server list server runs my spleef plugin :))
    • 199.115.230.7 (MeinerHosen's server)
    • server.epiccraft.net (timmaeh's server)
    • http://mine-empire.com/
    • 71.254.151.28 (phoenixstar's server)
    • ever-craft.de (Netto Hikari's server)
    • http://www.theminecraftserver.tk/
    • 66.181.16.36 (Truecraft)
    • mc.sti4n.com (Sti4Ns Minecraft)
    • If you would like your server listed above, PM me or post with your server IP.
    Download nSpleef (0.4.3)
    Would you like to test a development build? Download the latest build from http://ci.craftfire.com/view/niccholaspage/job/nSpleef/
    Report any errors and exactly what development build you are using if you get an error.

    Source Code

    0.4.3
    • Fix for teleport issue
    • Fix for plugins getting disabled because of nSpleef
    • Grace period
    0.4.2
    • Fix for the game has not started message if instantmine is off
    • /spleef will now show the version number and author :p
    • /spleef ? and /spleef help
    • Fix with duplicate countdowns with forceready
    • All nodes not written will be written to the config without the config having to get deleted
    • /spleef forceleave player
    • /spleef forcejoin player
    • When nSpleef announces the winner, the purple text after their name will still show as purple instead of white
    • Replaced MineConomy support with Essentials Economy
    • Support for decimals for money
    • Finished recoding things for better performance :p
    Changelog (open)
    Changelog:
    Version 0.4.1
    • Damage is now cancelled in a better way, no more annoying noises or dying if you fall at a distance enough to kill you
    • MineConomy support
    • List command shows cost
    • iConomy 5 support (NOTE: You CANNOT use iConomy 4 with this build!)
    • Fixed join kicker thread error message
    • Fixed /ready not working
    • Fixed moving too quickly message
    • Arenas load up after all worlds load up, which will fix problems with MultiVerse
    • Games do not get deleted when the last person uses /spleef leave
    • Recoded almost everything for better performance
    Version 0.4
    • Wagering! iConomy & BOSEconomy support
    • Force ready (/spleef forceready)
    • Silent ready (/spleef ready or /ready)
    • Join kicker. Configurable amount of seconds of when to kick people after they join if they don't type ready.
    • Fixes a bug where you could place blocks even if canplaceblocks was true while being out.
    • If no permissions system is installed, nSpleef will allow all OPs to use nSpleef.admin.* and all members to use nSpleef.member.*
    • deletearena command!
    • Attempt to stop mobs from spawning in arenas. Not tested, should work though.
    Version 0.3.1
    • Support for RB 602
    Version 0.3

    • Finally uses onCommand
    • nSpleef actually gets disabled if Permissions/GroupManager isn't found
    • Teleports you to where you where before doing /spleef join after a game
    • Persistent games! (A config option)
    • More specific Permissions nodes
    • On server reload or disable, nSpleef will restore arenas that where hosting a game and teleport players back to there location before /spleef join if they were in a game.
    Version 0.2

    • Fixed unknown command for OP
    • Fixed breaking blocks when the game hasn't started
    • Fix for when players disconnect
    Version 0.1.5

    • Fixed mining blocks out of a spleef zone
    • Fixed Permissions not taking in affect for the first point
    • Fixed a bug where players would not teleport out
    • Shows message when both blocks are on the same level
    Version 0.1.2

    • Fixed ready bug (Typing ready during a countdown would start another countdown xD)
    Version 0.1.1

    • Fixed arenas bug
    Version 0.1

    • Initial Release
     
    Max1998, wassilij, dr_brule and 7 others like this.
  2. Offline

    heronfarm

    I would probably guess that with 1.6 now out, and a compatible bukkit release imminent that most plugin developers will await it before updating. Note that the bukkit crew have reported a host of issues with 1.6 that make it all but unplayable, so we may be in for a little wait.
     
  3. Offline

    IceBlueFire

    Can i make a suggestion (if it hasn't already been suggested, i didn't read the last 19 pages...)?

    Would it be possible to make an inventory control for the arena, and return your original inventory when you win/lose? Perhaps just add an argument to the arena create command with either default/custom values. Default would let you bring in your own, regular inventory. Custom would allow you to use a command similar to /spleef additem arenaname itemID:amount

    This way you would be able to control that everyone in the game would get say iron armor and a wooden sword, and maybe 2 chunks of meat. Just an idea :) Good work so far, i'm looking forward to using this when 1.6 becomes stable.
     
  4. Offline

    niccholaspage

    Hmm, I guess 0.5.

    Also, my progress on 0.4.2: I finished forceleave and just have to add in forcejoin and that will be it :)
     
  5. Offline

    IceBlueFire

    Awesome =) That would be a great update imo, i look forward to it.
     
  6. Offline

    niccholaspage

    Trying to fix a bug with /spleef leave. After I get it fixed, I will add /spleef forcejoin and release 0.4.2.

    Fixed it. Now for /spleef forcejoin and some testing. After that, it will be release time :)

    EDIT: Finished /spleef forcejoin a while ago :p 0.4.2 will come out tomorrow after testing.

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: May 10, 2016
    kahlilnc likes this.
  7. Offline

    niccholaspage

    0.4.2 is out.
     
    kahlilnc likes this.
  8. Offline

    kahlilnc

  9. Offline

    heronfarm

    Hey, running 803, iConomy 5, I get the following:

    Code:
    20:46:18 [SEVERE] Error occurred (in the plugin loader) while enabling nSpleef v
    0.4.2 (Is it up to date?): null
    java.util.ConcurrentModificationException
            at java.util.TreeMap$PrivateEntryIterator.nextEntry(Unknown Source)
            at java.util.TreeMap$KeyIterator.next(Unknown Source)
            at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.j
    ava:308)
            at org.bukkit.plugin.java.JavaPluginLoader.enablePlugin(JavaPluginLoader
    .java:757)
            at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManage
    r.java:253)
            at org.bukkit.craftbukkit.CraftServer.loadPlugin(CraftServer.java:132)
            at org.bukkit.craftbukkit.CraftServer.loadPlugins(CraftServer.java:110)
            at net.minecraft.server.MinecraftServer.e(MinecraftServer.java:218)
            at net.minecraft.server.MinecraftServer.a(MinecraftServer.java:205)
            at net.minecraft.server.MinecraftServer.init(MinecraftServer.java:145)
            at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:265)
            at net.minecraft.server.ThreadServerApplication.run(SourceFile:394)
    This is the config I'm using:

    Code:
    nSpleef:
        canplaceblocks: false
        persistentgames: false
        givemoneyonleave: false
        givemoneyondisconnect: false
        givemoneyonkick: false
        joinkickertime: 0
        instantmine: true
     
  10. Offline

    niccholaspage

    Will look into that error today.
     
  11. Offline

    Nitnelave

    Could you add support for several games on the same arena? or for a "join game stake" option? the first one to enter the game would set the stake, and when everyone leaves it resets to nothing. I basically want players to be able to play at different stakes in the same arena. So either I can define several games for the same arena, or (and I'd prefer that) you allow players to dynamically set the stake on joining. I understand another way of doing it would be to create many overlapping arenas, but that's really not what I want to do, if I can avoid it...
     
  12. Offline

    killer987123

    Hi can any one help me im using build 818 and it doesnt work I put the permissions for it in permissions and it wont load perrmissions can anyone help?
     
  13. is it possible to force a start?
    Because sometimes a player does not type "ready" in the chat, so that the game does not start.
    And the Admins does not know, who it is!

    greetings
    Chriss
     
  14. Offline

    Nitnelave

    Well, you've got the joinkicktimer option (or something like that) who will kick someone after a configurable amount of time if they don't type ready.
     
  15. Offline

    kahlilnc

  16. Offline

    NopeDK

    @christopher_2007 check main post under "permissions", would guess the command is something like "/spleef forceready".

    @niccholaspage you have removed forceready from list of commands in main post?
     
  17. Offline

    niccholaspage

    Oops.
     
  18. Offline

    HawnSolo

    So, now that 1.6.6 is the latest "stable", and b818 is recommended...

    uh, do what you feel is appropriate, I guess. :)
     
  19. Offline

    niccholaspage

    It should work fine. Just because it says 803 doesn't mean you cannot try it on 818. I haven't gotten the chance to test it but if someone tells me or I do, I will change it.
     
  20. Offline

    HawnSolo

    Will do, sir. It's the 1.6.6 shift that's got me concerned, is all. I'll report back when I get the server running.
     
  21. Offline

    niccholaspage

    /spleef forceready - Look at the post
     
  22. Offline

    Hagon94

    I would really love the winning spleefer to get some sort of customizable item reward. Maybe even configurable so that it gives you different prizes based on how many players you won against, or what time.
    That would completely sell this plugin to me :]
     
  23. Offline

    OrtwinS

    @niccholaspage
    I (and my server) fell in love with your plugin. Thank you for making this!

    I run 0.4.2 at 820 without trouble but some players report /spleef leave not working, no errors though and for others it simply works, they all have nspleef.member.*.

    Suggestions:
    - Team battle, so even though part of the team gets knocked out early they still share the winnings if the team emerges victorious after all
    - Optional setting of an 'after battle teleport'. The send back across the map is nice, but not always wanted. If implemented then there also should be a maximum range from the arena for players to join a game. So it wont be abused as teleportation device.

    Also, you may put my server on the list, since this plugin is here to stay.
     
  24. Offline

    SparkyFuzeee

    Hey Guys
    Im running 1.6.6 server and when I put in a command such as /spleef define arena nothing happens
    But when i say /spleef help it says /spleef ? <page> and /spleef ready when i put different page nothing happens :(
    I dont know what im doing wrong but could someone help me? i would really appreciate it.
     
  25. Offline

    marshall007

    This doesn't seem to be working with Permissions 3. I'm also running CB 818.
    Code:
    2011-06-07 19:23:52 [SEVERE] java.lang.IllegalAccessError: tried to access class com.nijiko.permissions.ModularControl$1RefreshTask from class com.nijiko.permissions.ModularControl
    2011-06-07 19:23:52 [SEVERE] 	at com.nijiko.permissions.ModularControl.<init>(ModularControl.java:54)
    2011-06-07 19:23:52 [SEVERE] 	at com.nijikokun.bukkit.Permissions.Permissions.setupPermissions(Permissions.java:182)
    2011-06-07 19:23:52 [SEVERE] 	at com.nijikokun.bukkit.Permissions.Permissions.onLoad(Permissions.java:140)
    2011-06-07 19:23:52 [SEVERE] 	at org.bukkit.craftbukkit.CraftServer.loadPlugins(CraftServer.java:106)
    2011-06-07 19:23:52 [SEVERE] 	at net.minecraft.server.MinecraftServer.e(MinecraftServer.java:232)
    2011-06-07 19:23:52 [SEVERE] 	at net.minecraft.server.MinecraftServer.a(MinecraftServer.java:219)
    2011-06-07 19:23:52 [SEVERE] 	at net.minecraft.server.MinecraftServer.init(MinecraftServer.java:146)
    2011-06-07 19:23:52 [SEVERE] 	at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:285)
    2011-06-07 19:23:52 [SEVERE] 	at net.minecraft.server.ThreadServerApplication.run(SourceFile:422)
    2011-06-07 19:23:52 [SEVERE] [Permissions] Unable to load permission data.
    2011-06-07 19:23:52 [INFO] [Permissions] (Yeti) was initialized.
    2011-06-07 19:23:52 [INFO] [nSpleef] Hooked into Permissions 3.1.4
    2011-06-07 19:23:52 [INFO] nSpleef version 0.4.2 is enabled!
    This only occurs when nSpleef is enabled.
     
  26. Offline

    NopeDK

    @OrtwinS use CommandSigns like I do. Create them with the "/spleef forcejoin <NAME>" and whenever a player right clicks that sign they will join, then remove their permission to join and leave and only use the forcejoin and forceleave signs. I created a temporary lobby for players by forcing them to go there to join and whenever they leave they just dump right back into the "lobby".
     
  27. Offline

    OrtwinS

    CHA-CHING, I've been thinking about CommandSigns for some time now.
    Especially since the LocalShops plugin seems too complicated for 24 year olds (WTF? yes, my thougts exactly, but it happened).

    I dislike growing a jungle of plugins on my server but this one seems very worthwhile.
    Thanks!
     
  28. Offline

    rockxz2135

    I have this on "Funky Town" the #3 server on mcserverlist :D
     
  29. Offline

    Destera

    Hey guys ive got a problem with the plugin. When i define an arena it says an internal error occourd while atemping this command

    Bukkit version : git-Bukkit-0.0.0-766-g3fc0460-b818jnks


    Here the serverlog hope u can help me :)


    Code:
    148 recipes
    
    16 achievements
    
    > 18:10:04 [INFO] Starting minecraft server version Beta 1.6.6
    
    > 18:10:04 [INFO] Loading properties
    
    > 18:10:04 [INFO] Starting Minecraft server on 85.14.224.230:25565
    
    > 18:10:04 [INFO] This server is running Craftbukkit version git-Bukkit-0.0.0-766-g3fc0460-b818jnks (MC:
    
    1.6.6)
    
    > 18:10:04 [INFO] Preparing level ""
    
    > 18:10:04 [INFO] Preparing start region for level 0
    
    > 18:10:05 [INFO] Preparing start region for level 1
    
    > 18:10:06 [INFO] Preparing spawn area: 48%
    
    > 18:10:06 [INFO] LWC Loading shared objects
    
    > 18:10:06 [INFO] LWC Native library: plugins/LWC/lib/native/Linux/i386/libsqlitejdbc.so
    
    > 18:10:06 [INFO] DataSourcePool [iConomyChestShop] autoCommit[false] transIsolation[SERIALIZABLE] min[2]
    
    max[20]
    
    > 18:10:06 [INFO] SubClassFactory parent ClassLoader [org.bukkit.plugin.java.PluginClassLoader]
    
    > 18:10:06 [INFO] Entities enhanced[0] subclassed[1]
    
    > 18:10:06 [INFO] While loading iConomySuperpick (plugins/iConomySuperPick.jar) found old-data folder:
    
    plugins/iConomySuperPick next to the new one: plugins/iConomySuperpick
    
    > 18:10:07 [INFO] LavaFurnace loaded: 0 Furnace(s)
    
    > 18:10:07 [INFO] LavaFurnace config file finished loading...
    
    > 18:10:07 [INFO] LavaFurnace: Permissions not detected switching to Server OPs permission
    
    > 18:10:07 [INFO] LavaFurnace version 1.1a is enabled!
    
    > 18:10:07 [INFO] [iConomy] Logging is currently disabled.
    
    > 18:10:07 [INFO] [iConomy] v5.01 (Eruanna) loaded.
    
    > 18:10:07 [INFO] [iConomy] Developed by: [Nijikokun]
    
    > 18:10:07 [INFO] LWC Loaded 116 locale strings (0 overrides)
    
    > 18:10:07 [INFO] LWC Loading SQLite
    
    > 18:10:07 [INFO] SQLite Using: Native
    
    > 18:10:07 [INFO] LWC At version: v2.31
    
    > 18:10:08 [INFO] [iConomyChestShop] version 2.75 initialized!
    
    > 18:10:08 [INFO] [iConomyChestShop] iConomy version 5 loaded.
    
    > 18:10:08 [INFO] [iConomyChestShop] LWC version 2.31 loaded.
    
    > 18:10:08 [INFO] ChatBukkit v0.0.1 is enabled!
    
    > 18:10:08 [INFO] ScrapBukkit version 0.2.1 is enabled!
    
    > 18:10:08 [INFO] iConomysuperpickaxe v0.3 by codename_B enabled
    
    > 18:10:08 [INFO] iConomy superpick charging 100units of currency by default.
    
    > 18:10:08 [INFO] Warpz0r version 1.3.0 is enabled
    
    > 18:10:08 [INFO] [Warpz0r] Found iConomy (v5.01)
    
    > 18:10:08 [INFO] FloodGates 1.3
    
    > 18:10:08 [INFO] [ColorMe]: Permission system not detected. Defaulting to OP permissions.
    
    > 18:10:08 [INFO] [ColorMe] v2.2 has been enabled.
    
    > 18:10:08 [INFO] [ColorMe] hooked into iConomy.
    
    > 18:10:08 [INFO] WorldGuard: No known permissions plugin detected. Using configuration file for
    
    permissions.
    
    > 18:10:08 [INFO] WorldGuard: () Single session is enforced.
    
    > 18:10:08 [INFO] WorldGuard: () TNT ignition is blocked.
    
    > 18:10:08 [INFO] WorldGuard: () Lighters are blocked.
    
    > 18:10:08 [INFO] WorldGuard: () Lava fire is blocked.
    
    > 18:10:08 [INFO] WorldGuard: () Fire spread is UNRESTRICTED.
    
    > 18:10:08 [INFO] WorldGuard: Loaded configuration for world '"
    
    > 18:10:08 [INFO] WorldGuard: (_nether) Single session is enforced.
    
    > 18:10:08 [INFO] WorldGuard: (_nether) TNT ignition is blocked.
    
    > 18:10:08 [INFO] WorldGuard: (_nether) Lighters are blocked.
    
    > 18:10:08 [INFO] WorldGuard: (_nether) Lava fire is blocked.
    
    > 18:10:08 [INFO] WorldGuard: (_nether) Fire spread is UNRESTRICTED.
    
    > 18:10:08 [INFO] WorldGuard: Loaded configuration for world '_nether"
    
    > 18:10:08 [INFO] WorldGuard 5.0-alpha10 enabled.
    
    > 18:10:08 [INFO] [Prefixer]: Permission system not detected. Defaulting to OP permissions.
    
    > 18:10:08 [INFO] [Prefixer] v2.3 has been enabled.
    
    > 18:10:08 [INFO] Tombstone v.1.2.9 is enabled.
    
    > 18:10:08 [INFO] [Tombstone] Using LWC (v2.31)
    
    > 18:10:08 [INFO] [mxRingplatform] Permission system not detected, defaulting to OP
    
    > 18:10:08 [INFO] mxRingplatform v 1.0 enabled
    
    > 18:10:08 [INFO] [nSpleef] Could not find any permissions plugin. Only OPs will be able to use admin
    
    commands.
    
    > 18:10:08 [INFO] nSpleef version 0.4.2 is enabled!
    
    > 18:10:08 [INFO] [nSpleef] Economy plugin found (iConomy version: 5)
    
    > 18:10:08 [INFO] CommandBook 1.5.2 enabled.
    
    > 18:10:08 [INFO] CommandBook: Maximum wrapper compatibility is enabled. Some features have been disabled
    
    to be compatible with poorly written server wrappers.
    
    > 18:10:08 [INFO] CommandBook: 0 banned name(s) loaded.
    
    > 18:10:08 [INFO] CommandBook: 1 kit(s) loaded.
    
    > 18:10:08 [INFO] CommandBook: No known permissions plugin detected. Using configuration file for
    
    permissions.
    
    > 18:10:08 [INFO] WorldEdit 4.6 enabled.
    
    > 18:10:08 [INFO] WorldEdit: No known permissions plugin detected. Using configuration file for
    
    permissions.
    
    > 18:10:08 [INFO] [Citizens]: version [1.0.8f] (Realist) loaded
    
    > 18:10:08 [SEVERE] [Citizens]: A Permissions plugin isn't loaded, commands can only be used by ops.
    
    > 18:10:08 [INFO] [Citizens]: Payment method found (iConomy version: 5)
    
    > 18:10:08 [INFO] Done (0.354s)! For help, type "help" or "?"
    
    > 18:10:08 [WARNING] Task of 'nSpleef' generated an exception
    
    java.lang.ArrayIndexOutOfBoundsException: 7
    
    at com.niccholaspage.nSpleef.Data.addArena(Data.java:25)
    
    at com.niccholaspage.nSpleef.Data.setupArenas(Data.java:20)
    
    at com.niccholaspage.nSpleef.nSpleef$1.run(nSpleef.java:239)
    
    at org.bukkit.craftbukkit.scheduler.CraftScheduler.mainThreadHeartbeat(CraftScheduler.java:138)
    
    at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:388)
    
    at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:311)
    
    at net.minecraft.server.ThreadServerApplication.run(SourceFile:422)
    
    > 18:10:08 [INFO] [Citizens]: Loaded 6 NPCs
     
  30. Offline

    sukosevato

  31. Offline

    Boxie

    update to 818 please
     

Share This Page