garbagemule / mobarena Goto Github PK
View Code? Open in Web Editor NEWMobArena plugin for Minecraft
License: GNU General Public License v3.0
MobArena plugin for Minecraft
License: GNU General Public License v3.0
All redstone in the marked area refuses to work/activate.
Any time that i go into the arena no mobs show up. I am positive that the config hasn't been changed, i have tried re-installing, but nothing works. Sometimes if I am lucky 1 wolf will show up on the first wave.
cheers
Mc_Duff
I'm trying to hook into Mob Arena to get a list of all currently enabled arenas. Upon looking at the code for the ArenaMaster.java class, I noticed something. I'm trying to get:
https://github.com/garbagemule/MobArena/blob/master/src/com/garbagemule/MobArena/ArenaMaster.java#L66
and according to Eclipse everything is working as it should. But I notice in the ArenaMaster constructor, you instantiate the "arenas" list, but never populate it, enabled or not. The result is when I call "getEnabledArenas()" it populates the "result" list with all the enabled arenas in the "arenas" list, which contains zero arenas to check and possibly populate "result" with.
on a side note, I was wondering if there could be a method similar to getEnabledArenas() that returns every arena created on the server, regardless of the enabled state. so something like getAllArenas().
How can i see, what i have to do to finish setting up the arena?
mapping values are not allowed here
in "", line 68, column 25:
type: default
anything with a colon gives a error?
Hi... This is the error I get in the server log when someone kills a boss. ( Easily, no matter what level the health is set at)
2011-12-07 15:09:25 [INFO] [MobArena] Arena 'emm' enabled
2011-12-07 15:11:00 [WARNING] Task of 'MobArena' generated an exception
java.lang.IllegalArgumentException: Health must be between 0 and 8
at org.bukkit.craftbukkit.entity.CraftLivingEntity.setHealth(CraftLivingEntity.java:40)
at com.garbagemule.MobArena.waves.BossWave.spawn(BossWave.java:83)
at com.garbagemule.MobArena.MASpawnThread.spawnWave(MASpawnThread.java:141)
at com.garbagemule.MobArena.MASpawnThread.run(MASpawnThread.java:86)
at org.bukkit.craftbukkit.scheduler.CraftScheduler.mainThreadHeartbeat(CraftScheduler.java:137)
at net.minecraft.server.MinecraftServer.w(MinecraftServer.java:482)
at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:414)
at net.minecraft.server.ThreadServerApplication.run(SourceFile:457)
2011-12-07 15:11:02 [SEVERE] Could not pass event ENTITY_DAMAGE to MobArena
java.lang.IllegalArgumentException: Health must be between 0 and 8
at org.bukkit.craftbukkit.entity.CraftLivingEntity.setHealth(CraftLivingEntity.java:40)
at com.garbagemule.MobArena.MAListener.onMonsterDamage(MAListener.java:393)
at com.garbagemule.MobArena.MAListener.onEntityDamage(MAListener.java:323)
at com.garbagemule.MobArena.MAEntityListener.onEntityDamage(MAEntityListener.java:41)
at org.bukkit.plugin.java.JavaPluginLoader$63.execute(JavaPluginLoader.java:700)
at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:58)
at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:339)
at net.minecraft.server.EntityHuman.f(EntityHuman.java:782)
at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:915)
at net.minecraft.server.Packet7UseEntity.a(SourceFile:33)
at net.minecraft.server.NetworkManager.b(NetworkManager.java:226)
at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:92)
at net.minecraft.server.NetworkListenThread.a(SourceFile:108)
at net.minecraft.server.MinecraftServer.w(MinecraftServer.java:516)
at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:414)
at net.minecraft.server.ThreadServerApplication.run(SourceFile:457)
2011-12-07 15:11:02 [SEVERE] Could not pass event ENTITY_DAMAGE to MobArena
java.lang.IllegalArgumentException: Health must be between 0 and 8
at org.bukkit.craftbukkit.entity.CraftLivingEntity.setHealth(CraftLivingEntity.java:40)
at com.garbagemule.MobArena.MAListener.onMonsterDamage(MAListener.java:393)
at com.garbagemule.MobArena.MAListener.onEntityDamage(MAListener.java:323)
at com.garbagemule.MobArena.MAEntityListener.onEntityDamage(MAEntityListener.java:41)
at org.bukkit.plugin.java.JavaPluginLoader$63.execute(JavaPluginLoader.java:700)
at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:58)
at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:339)
at net.minecraft.server.EntityHuman.f(EntityHuman.java:782)
at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:915)
at net.minecraft.server.Packet7UseEntity.a(SourceFile:33)
at net.minecraft.server.NetworkManager.b(NetworkManager.java:226)
at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:92)
at net.minecraft.server.NetworkListenThread.a(SourceFile:108)
at net.minecraft.server.MinecraftServer.w(MinecraftServer.java:516)
at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:414)
at net.minecraft.server.ThreadServerApplication.run(SourceFile:457)
2011-12-07 15:11:04 [SEVERE] Could not pass event ENTITY_DAMAGE to MobArena
java.lang.IllegalArgumentException: Health must be between 0 and 8
at org.bukkit.craftbukkit.entity.CraftLivingEntity.setHealth(CraftLivingEntity.java:40)
at com.garbagemule.MobArena.MAListener.onMonsterDamage(MAListener.java:393)
at com.garbagemule.MobArena.MAListener.onEntityDamage(MAListener.java:323)
at com.garbagemule.MobArena.MAEntityListener.onEntityDamage(MAEntityListener.java:41)
at org.bukkit.plugin.java.JavaPluginLoader$63.execute(JavaPluginLoader.java:700)
at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:58)
at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:339)
at net.minecraft.server.EntityHuman.f(EntityHuman.java:782)
at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:915)
at net.minecraft.server.Packet7UseEntity.a(SourceFile:33)
at net.minecraft.server.NetworkManager.b(NetworkManager.java:226)
at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:92)
at net.minecraft.server.NetworkListenThread.a(SourceFile:108)
at net.minecraft.server.MinecraftServer.w(MinecraftServer.java:516)
at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:414)
at net.minecraft.server.ThreadServerApplication.run(SourceFile:457)
meizme noted that adding extra armour items to either the class items or the class armour causes it not to appear. Just making a note of that bug here.
During a match some stairs were destroyed, having force-restore set to true, it restore all the stairs but made them all face north. Also parts of the arena are a mix of spruce wood and original wood, upon restore it sets it all to the original.
Title sums it up, destroyed ladders and lava are not restored upon arena reset.
Hey garbagemule, if a player's pet dies at the same time as the player, there's a chance they could experience an error. I would add some checks here to make sure the Wolf is still alive and able to be edited:
https://github.com/garbagemule/MobArena/blob/master/src/com/garbagemule/MobArena/Arena.java#L795
Here's the error:
i built my mob arena then when i went to set it up i entered /ma setregion p1 and it gave me the message
/ma join -join the arena
/ma leave - leave the arena
/ma notready -list of players not readt
/ma spectate -warp to the spectator area
then i tried the /ma setregion p2 same restult and when i tried /ma show region nothing.
then i rebooted the plugin same results then i uninstalled permissions as that may have done something still same result
please could some help me if necessary i will set my config file in case I've made a mistake in there
With the last 1597 builds of bukkit it seems that:
Our players are very excited for MA to return, please make it work for 1597
We have cactus as a class item (sand embedded in the arena). If the cactus is able to grow, whenever the arena resets at the end, the "grown" cactus is not removed (the base is, though), creating a weird situation of cactus in mid-air.
Wanted to mention it before I forgot. ^_^
If you join with /ma j, then pickup a class and then just /ma leave you will have class items added to your inventory. Exactly it looks like items on restore are added to "empty" inventory of returning character but class items are still in inventory and items from restore are moved to next slots, class items stays where they were after picking class.
Taken right out of the wiki for the config file, adding in a line for permissions so that it would look like (with proper indentation)
classes:
Knight:
items: diamond_sword, grilled_pork:2
armor: 306,307,308,309
permission: donator
Archer:
items: wood_sword, bow, arrow:128, grilled_pork
armor: 298,299,300,301
permission: member
[...]
Basically, the idea is for perk classes for donors and such. At the moment, Ive got them behind lockette doors, however people from time to time still try to bumrush it as someone else opens it up. Thoughts?
When using MA on a world that doesn't allow any other mobs to spawn (with MyWorlds) I get mobs that spawn on top of the arena. They don't go away after a match either and they are technically in the arena cuboid
I want to use iConomy 6 for my server, but MobArena uses essentials eco plugin instead of iConomy 6. Could you update your registers and dependencies?
I am using the MultiInv plugin to allow my server to have a separate creative and survival side. I have three worlds. "survivalside" and "blakecity" share a survival-type game mode and inventory. "creativeside" has a creative type game mode with a separate inventory altogether.
There is a little bug I'm experiencing though, which prevents me from using MobArena.
If the player is in a world with the survival side inventory and calls /ma join, followed by /ma leave.... everything works as expected
BUT if the player is in a world with the creative side inventory and calls /ma join... upon leaving, the creative inventory is blank, and the survival inventory contains everything that used to be in the creative inventory.
As a result, anyone can basically move items from creative to survival by joining and immediately leaving, which is a huge exploit that must be fixed.
Please could you fix this?
Hello. Larger server using Transporter to manage worlds and world travel. Pulled apart the .jar and noticed that it wasn't in the softdepends array. Added it manually to the softdepends array in plugin.yml, but still recieving an exception upon plugin load. World name is spelled correctly in plugin.yml, and there are no /t in the yml.
Here is the traceback:
Need any other information?
The player should not be asked to clear inventory to spectate, only on join
I use PermissionsEX and have all the correct permissions set according to the wiki. Even with the latest dev build I continually get the Command not allowed error, _even in the console_. Is this a bug you may already be aware of? I can be an op and use all commands perfectly fine.
when somone destroys a sign it commes back with blanc text
exsample it you destroy the knight sign the sign will respawn after 2 sec but nothing will stand on it
when "/ma leave" is used before having won any prizes, all the gear is kept! This is a major exploit.
On my minecraft server only the admins can pick classes when player pick a class nothing happens nothing pop up for him/her
Can you help please ?
im a op and when i use /ma join it says i dont have access to this command but yet i can use all the setup commands any help plz
I have an arena without any obstacles, it's is just a simple oval arena so there is no reason for players to be able to break and move blocks within it, but they can. The protect feature used to work like a charm but isn't anymore? I'm not sure whats wrong, any suggestions?
After i die, and am transported to the spectator lobby, i am getting an announcement of "No sharing allowed at this time". I am only allowed to drop my items after i premform the "/ma leave" command. Here is a pastebin of my config http://pastebin.com/F5h0zpQH
Hello,
I have a problem with colored wool.
In MobArena 0.93 I had put this :
Blanc:
items: 35:0:64
armor:
Orange:
items: 35:1:64
armor:
Fuschia:
items: 35:2:64
armor:
Bleu_clair:
items: 35:3:64
armor:
Jaune:
items: 35:4:64
armor:
Vert:
items: 35:5:64
armor:
Rose:
items: 35:6:64
armor:
Gris_fonce:
items: 35:7:64
armor:
Gris:
items: 35:8:64
armor:
Cyan:
items: 35:9:64
armor:
Magenta:
items: 35:10:64
armor:
Bleu:
items: 35:11:64
armor:
Maron:
items: 35:12:64
armor:
Kaki:
items: 35:13:64
armor:
Rouge:
items: 35:14:64
armor:
Noir:
items: 35:15:64
armor:
and it works correctly.
In 0.94, I have all the time 64 white wools
Thank you for your help.
heres the line thats says it:
02:13 PM [SEVERE] Error occurred while enabling MobArena v0.94.3.24 (Is it up to date?): while scanning a simple key; could not found expected ':'
can you help?
Hey garbagemule,
Someone came into IRC today and did not have any permissions plugin. He was an Op and other players on the server were not. When they type /ma join (or /ma j) Mob Arena yells at them that "You do not have access to this command". In a no-permissions environment, everyone should have access to it, but in reality none of them do.
went looking at your commands code and found this:
https://github.com/garbagemule/MobArena/blob/dev/src/com/garbagemule/MobArena/MACommands.java#L115
you check the join command for if(not console OR player doesn't have perm) and never check to see (seemingly) that permissions may not even be installed. The same is also true for /ma l(eave)
I tried on my test server with no perms and that's what I found out. I could edit and set up arenas as normal as an Op, but even as an Op (and not as an Op) I could not join an arena
Currently, nobody is able to teleport out of the arena, bosses aren't able to teleport player, I as admin am not able to teleport anyone out of the arena when Iam outside and after finishing arena and using /ma leave players will stay in arena.
I guess this problem started with dev build.
In config I denied teleportations, because my players have the /home command, and I don't want them to teleport with armor and stuff. But I also want bosses to use warp abilities and players to be teleported home after they finish arena.
this is my config file: http://pastebin.com/M40QkC9X
It would be really useful when players get kicked when they use magic spells, because it would be an adequate penalty and some commands like /butcher
work in the arena (at least for ops) too.
Maybe this could be set in the config.
In the latest build of MA, pulled from the link on irc today, players seem to be randomly kicked from the arena as if they had typed /ma leave. They don't die, they don't go the spectate area, they're returned to the area at which they joined and the "Leaving so soon?" message is displayed.
So I've decided to enable the timer to prevent players from hiding and spawning so many mobs that it brings down the server, but a 60sec kick is really kinda annoying for players.
Could a percentage timer be added + movement so that if a player kills a certain amount of the mob wave and is still running around looking, they don't get kicked?
When you save the arena "default", it always saves the arena in the world "world", even if you are in a different world. I haven't tried the other additional arenas.
I created arena and now whenever I play I can't be hurt by the mobs, other ops can be hurt by them its just me i am the creator of the arena if that has to do with something
It seems Magic spells is supposed to be compatible isn't it?
When ever I run them both Magic Spells makes it where when ever I type a /ma join or any type of ma command it just brings up the list
/ma join
/ma spectate
etc
Any solutions to this?
is there a way to make it so that an area of the arena only is available at certain waves e.g say that at wave 10 an area opens up revealing some chests or is there a way to lock chests until a certain wave?
thanks
java.lang.NullPointerException
at com.garbagemule.MobArena.MASpawnThread.addReward(MASpawnThread.java:131)
at com.garbagemule.MobArena.MASpawnThread.run(MASpawnThread.java:89)
at org.bukkit.craftbukkit.scheduler.CraftScheduler.mainThreadHeartbeat(CraftScheduler.java:137)
at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:438)
at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:361)
at net.minecraft.server.ThreadServerApplication.run(SourceFile:422)
2011-07-04 16:46:34 [SEVERE] null
org.bukkit.command.CommandException: Unhandled exception executing command 'ma' in plugin MobArena v0.92
at org.bukkit.command.PluginCommand.execute(PluginCommand.java:37)
at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:129)
at org.bukkit.craftbukkit.CraftServer.dispatchCommand(CraftServer.java:298)
at net.minecraft.server.NetServerHandler.handleCommand(NetServerHandler.java:711)
at net.minecraft.server.NetServerHandler.chat(NetServerHandler.java:676)
at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:669)
at net.minecraft.server.Packet3Chat.a(Packet3Chat.java:33)
at net.minecraft.server.NetworkManager.b(NetworkManager.java:226)
at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:84)
at net.minecraft.server.NetworkListenThread.a(SourceFile:105)
at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:451)
at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:361)
at net.minecraft.server.ThreadServerApplication.run(SourceFile:422)
Caused by: java.lang.NullPointerException
at org.bukkit.craftbukkit.inventory.CraftInventory.addItem(CraftInventory.java:240)
at com.garbagemule.MobArena.MAUtils.giveItems(MAUtils.java:455)
at com.garbagemule.MobArena.MAUtils.giveRewards(MAUtils.java:482)
at com.garbagemule.MobArena.Arena.giveRewards(Arena.java:399)
at com.garbagemule.MobArena.Arena.endArena(Arena.java:204)
at com.garbagemule.MobArena.Arena.playerLeave(Arena.java:307)
at com.garbagemule.MobArena.MACommands.onCommand(MACommands.java:224)
at org.bukkit.command.PluginCommand.execute(PluginCommand.java:35)
... 12 more
I've turned it so that i can build but it deletes everything that i build. So i had an Op try and they can. It also will not let anyone but that Op actually pick a class and join. Anyone besides that Op cannot join into any of the matches. This provides a huge issue because nobody but this person and other Ops can actually play the Mob Arena. I hope that this can get fixed so that i can play my own arena.
-Shadowreaper117
an instant healing potion is 373:8197 and that works fine. however when I want an instant healing potion tier two (373:8229) they don't spawn when clicking the sign. I find this strange as it is still a separate sub type, and i could give my players double the amount of tier one potions but its just for speed and convenience. thanks
A friend of mine decided to get his own MC server and he has me do the perms, plugins, etc. I have been working on configuring my Mob Arena for the past day, and I have an issue that I don't know how to solve, but i have narrowed it down to my config. file. I use wordpad and it got the spacings wrong so I used Beast Nodes' panel to configure it. As far as i can tell my config is correct which is whats scaring me. I deleted the first config i made and let the plugin reset and the commands worked, but as soon as I edit it and reload the commands dont work.
All I am asking is for someone to come take a quick look and see if its my configuration or not. As far as i can tell I dont have a conflict as it works before I configured my waves, and knowing my luck the problem is something stupid like a simple misspelling, or spacing error. Any help would be appreciated.
Config is as follows:
global-settings:
enabled: true
allowed-commands: /list, /pl
update-notification: true
classes:
Knight:
items: diamond_sword, grilled_pork:5, golden_apple:2
armor: 310,311,312,313
Tank:
items: iron_sword, grilled_pork:3, golden_apple:2
armor: 310,311,312,313
Archer:
items: iron_sword, bow, arrow:256, grilled_pork, bone
armor: 310,311,312,313
Soldier:
items: diamond_sword, bow, arrow:256, grilled_pork:5
armor: 302,303,304,305
Medic:
items: iron_sword, grilled_pork:5, golden_apple:5, bread:5
armor: 302,303,304,305
Assualt:
items: diamond_sword, bow, arrow:320, iron_sword
armor: 310,311,312,313
arenas:
default:
settings:
world: ''
enabled: true
protect: true
entry-fee: ''
logging: true
clear-wave-before-next: false
detonate-creepers: false
detonate-damage: false
lightning: true
auto-equip-armor: true
force-restore: false
soft-restore: false
soft-restore-drops: false
require-empty-inv-join: false
require-empty-inv-spec: false
hellhounds: false
pvp-enabled: false
monster-infight: false
allow-teleporting: false
spectate-on-death: true
share-items-in-arena: true
min-players: 1
max-players: 88
max-join-distance: 0
repair-delay: 5
first-wave-delay: 5
wave-interval: 20
special-modulo: 4
max-idle-time: 0
spout-class-select: true
waves:
recurrent:
def1:
type: default
priority: 1
frequency: 1
growth: medium
monsters:
zombies: 10
skeletons: 10
spiders: 10
exploding_sheep: 10
wolves: 10
spec1:
type: special
priority: 2
frequency: 4
monsters:
exploding_sheep: 10
zombie-pigmen: 10
angry-wolves: 10
humans: 10
swarm1:
type: swarm
priority: 3
frequency: 5
amount: medium
monster: exploding_sheep
swarm3:
type: swarm
priority: 10
frequency: 7
amount: medium
monster: silverfish
single:
swarm2:
type: swarm
monster: pigs
wave: 11
amount: high
bossa:
type: boss
wave: 5
monster: slime_small
health: low
abilities: fire-aura
boss1:
type: boss
wave:10
monster: zombie
health: medium
abilities: fireballs
boss2:
type: boss
wave: 15
monster: ghast
health: medium
abilities: fireballs
boss3:
type: boss
wave: 20
monster: slime_huge
health: psycho
boss4:
type: boss
wave: 25
monster: giant
health: medium
abilities: fireballs, disorient-target, arrows
boss5:
type: boss
wave: 30
monster: ghast
health: psycho
abilities: fireballs, disorient-target, arrows
boss6:
type: boss
wave: 40
monster: enderman
health: medium
abilities: fireballs, disorient-target, arrows, fire-aura, fetch-distant
boss7:
type: boss
wave: 50
monster: giant
health: psycho
abilities: fireballs, disorient-target, arrows, fire-aura, fetch-distant, fetch-nearby
rewards:
waves:
every:
'3': $10
'5': $50
'10': $150
'15': $200
'20': $250
'25': $1000
after:
'10': $100
'15': $200
'20': $250
'25': $300
'30': $500
'35': $750
'40': $1000
'45': $1500
'50': $2000
No matter what i have set in my config, blocks destroyed by player are not restored. and hard restore doesn't seem to be working either. using 94.4.21
Just making a note that wolf bosses CAN kill wolf pets.
Once everyone has died and the game is over, on some occasions the remaining mobs are left to roam around the arena and if killed drop normal items (unlike when the arena is active). Normally they disappear when the game ends so is this a bug?
Hey, I noticed something interesting, When i like add MobArena into my plugins, then like World animals/mobs will not spawn anymore, Like it's completely down no pigs no wolves no cows no chickens and so on...
Hi,
Recently I tried to create a class where you have don't have full armor and either when I put 0 or nothing as pieces of armor, it crashes when I chose the specified class. I did not find anybody talking about this issue...I was wondering if it is only me...
Thanks
Ringknight05
Can you make boss skill, that boss explodes, destroy surrounding blocks, but not damage self or players? Or just something, that allows bosses to break blocks?
As the title says, when my inventory gets cleared before a match, it does not take into account that my sword was enchanted.
I used the last available version as of 4. December.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.