Code Monkey home page Code Monkey logo

minigames's Introduction

Codacy Badge Stories in Ready

The Minigames plugin for CraftBukkit servers.

To build this source you require Vault and the latest build of Bukkit.

mvn clean install ####Build Status

Branch Status Coverage
Master Build Status - Master Coverage Status
Development Build Status - Master Coverage Status

Minigames is also compiled against Spigot and Paper-Spigot and should work fine on that type of server as well.

The General release will always be available on SpigotMC For the most up-to-date info go to Minigames You can access the wiki and other related pages there.

Minigames is supported and will be profiled by

YourKit Profiler

minigames's People

Contributors

addstar avatar addstarbot avatar alchemistmatt avatar codacy-badger avatar dependabot-preview[bot] avatar fireinstall avatar griffincodes avatar joshi1999 avatar miniworks18 avatar narimm avatar razz0991 avatar reed022 avatar robotoraccoon avatar samuelwanderson45 avatar schmoller avatar schpammer avatar waffle-iron avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

minigames's Issues

Starting Positions

Okay, When I do /mg set RED (The Minigame I'm Working On) start, i start somewhere else, i've gone into the config file and deleted the one that is making players start somewhere is, but after a while it will come back... PLEASE HELP ME :(

Starting

Hello, when I set this all up, my game wont start. It counts down to 5 then stops. Just keeps saying 5, 5, 5. Also, when I restart the server, the loadouts go away.

Can't add teams Build 133

When I try to add a team here what occurs
[11:55:18] [Netty IO #2/ERROR]: Could not pass event AsyncPlayerChatEvent to Minigames v1.7.0-b133
org.bukkit.event.EventException
at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:338) ~[JavaPluginLoader$1.class:git-Cauldron-MCPC-Plus-1.7.10-1.1231.04.209]
at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:62) ~[RegisteredListener.class:git-Cauldron-MCPC-Plus-1.7.10-1.1231.04.209]
at org.bukkit.plugin.SimplePluginManager.fireEvent(SimplePluginManager.java:507) [SimplePluginManager.class:git-Cauldron-MCPC-Plus-1.7.10-1.1231.04.209]
at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:489) [SimplePluginManager.class:git-Cauldron-MCPC-Plus-1.7.10-1.1231.04.209]
at net.minecraft.network.NetHandlerPlayServer.chat(NetHandlerPlayServer.java:1230) [nh.class:?]
at net.minecraft.network.NetHandlerPlayServer.func_147354_a(NetHandlerPlayServer.java:1155) [nh.class:?]
at net.minecraft.network.play.client.C01PacketChatMessage.func_148833_a(C01PacketChatMessage.java:38) [ir.class:?]
at net.minecraft.network.play.client.C01PacketChatMessage.func_148833_a(C01PacketChatMessage.java:53) [ir.class:?]
at net.minecraft.network.NetworkManager.channelRead0(NetworkManager.java:137) [ej.class:?]
at net.minecraft.network.NetworkManager.channelRead0(NetworkManager.java:351) [ej.class:?]
at io.netty.channel.SimpleChannelInboundHandler.channelRead(SimpleChannelInboundHandler.java:98) [SimpleChannelInboundHandler.class:?]
at io.netty.channel.DefaultChannelHandlerContext.invokeChannelRead(DefaultChannelHandlerContext.java:337) [DefaultChannelHandlerContext.class:?]
at io.netty.channel.DefaultChannelHandlerContext.fireChannelRead(DefaultChannelHandlerContext.java:323) [DefaultChannelHandlerContext.class:?]
at cpw.mods.fml.common.network.handshake.NetworkDispatcher.channelRead0(NetworkDispatcher.java:193) [NetworkDispatcher.class:git-Cauldron-MCPC-Plus-1.7.10-1.1286.06.217]
at cpw.mods.fml.common.network.handshake.NetworkDispatcher.channelRead0(NetworkDispatcher.java:43) [NetworkDispatcher.class:git-Cauldron-MCPC-Plus-1.7.10-1.1286.06.217]
at io.netty.channel.SimpleChannelInboundHandler.channelRead(SimpleChannelInboundHandler.java:98) [SimpleChannelInboundHandler.class:?]
at io.netty.channel.DefaultChannelHandlerContext.invokeChannelRead(DefaultChannelHandlerContext.java:337) [DefaultChannelHandlerContext.class:?]
at io.netty.channel.DefaultChannelHandlerContext.fireChannelRead(DefaultChannelHandlerContext.java:323) [DefaultChannelHandlerContext.class:?]
at io.netty.handler.codec.ByteToMessageDecoder.channelRead(ByteToMessageDecoder.java:173) [ByteToMessageDecoder.class:?]
at io.netty.channel.DefaultChannelHandlerContext.invokeChannelRead(DefaultChannelHandlerContext.java:337) [DefaultChannelHandlerContext.class:?]
at io.netty.channel.DefaultChannelHandlerContext.fireChannelRead(DefaultChannelHandlerContext.java:323) [DefaultChannelHandlerContext.class:?]
at io.netty.handler.codec.ByteToMessageDecoder.channelRead(ByteToMessageDecoder.java:173) [ByteToMessageDecoder.class:?]
at io.netty.channel.DefaultChannelHandlerContext.invokeChannelRead(DefaultChannelHandlerContext.java:337) [DefaultChannelHandlerContext.class:?]
at io.netty.channel.DefaultChannelHandlerContext.fireChannelRead(DefaultChannelHandlerContext.java:323) [DefaultChannelHandlerContext.class:?]
at io.netty.handler.codec.MessageToMessageDecoder.channelRead(MessageToMessageDecoder.java:103) [MessageToMessageDecoder.class:?]
at io.netty.channel.DefaultChannelHandlerContext.invokeChannelRead(DefaultChannelHandlerContext.java:337) [DefaultChannelHandlerContext.class:?]
at io.netty.channel.DefaultChannelHandlerContext.fireChannelRead(DefaultChannelHandlerContext.java:323) [DefaultChannelHandlerContext.class:?]
at io.netty.handler.timeout.ReadTimeoutHandler.channelRead(ReadTimeoutHandler.java:149) [ReadTimeoutHandler.class:?]
at io.netty.channel.DefaultChannelHandlerContext.invokeChannelRead(DefaultChannelHandlerContext.java:337) [DefaultChannelHandlerContext.class:?]
at io.netty.channel.DefaultChannelHandlerContext.fireChannelRead(DefaultChannelHandlerContext.java:323) [DefaultChannelHandlerContext.class:?]
at io.netty.channel.DefaultChannelPipeline.fireChannelRead(DefaultChannelPipeline.java:785) [DefaultChannelPipeline.class:?]
at io.netty.channel.nio.AbstractNioByteChannel$NioByteUnsafe.read(AbstractNioByteChannel.java:100) [AbstractNioByteChannel$NioByteUnsafe.class:?]
at io.netty.channel.nio.NioEventLoop.processSelectedKey(NioEventLoop.java:480) [NioEventLoop.class:?]
at io.netty.channel.nio.NioEventLoop.processSelectedKeysOptimized(NioEventLoop.java:447) [NioEventLoop.class:?]
at io.netty.channel.nio.NioEventLoop.run(NioEventLoop.java:341) [NioEventLoop.class:?]
at io.netty.util.concurrent.SingleThreadEventExecutor$2.run(SingleThreadEventExecutor.java:101) [SingleThreadEventExecutor$2.class:?]
at java.lang.Thread.run(Unknown Source) [?:1.7.0_75]
Caused by: java.lang.NoClassDefFoundError: org/bukkit/scoreboard/NameTagVisibility
at au.com.mineauz.minigames.minigame.modules.TeamsModule.addTeam(TeamsModule.java:104) ~[?:?]
at au.com.mineauz.minigames.minigame.modules.TeamsModule.addTeam(TeamsModule.java:99) ~[?:?]
at au.com.mineauz.minigames.menu.MenuItemAddTeam.checkValidEntry(MenuItemAddTeam.java:49) ~[?:?]
at au.com.mineauz.minigames.Events.manualItemEntry(Events.java:649) ~[?:?]
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.7.0_75]
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) ~[?:1.7.0_75]
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) ~[?:1.7.0_75]
at java.lang.reflect.Method.invoke(Unknown Source) ~[?:1.7.0_75]
at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:334) ~[JavaPluginLoader$1.class:git-Cauldron-MCPC-Plus-1.7.10-1.1231.04.209]
... 36 more
Caused by: java.lang.ClassNotFoundException: org.bukkit.scoreboard.NameTagVisibility
at org.bukkit.plugin.java.PluginClassLoader.findClass(PluginClassLoader.java:394) ~[PluginClassLoader.class:git-Cauldron-MCPC-Plus-1.7.10-1.1231.04.209]
at org.bukkit.plugin.java.PluginClassLoader.findClass(PluginClassLoader.java:211) ~[PluginClassLoader.class:git-Cauldron-MCPC-Plus-1.7.10-1.1231.04.209]
at java.lang.ClassLoader.loadClass(Unknown Source) ~[?:1.7.0_75]
at java.lang.ClassLoader.loadClass(Unknown Source) ~[?:1.7.0_75]
at au.com.mineauz.minigames.minigame.modules.TeamsModule.addTeam(TeamsModule.java:104) ~[?:?]
at au.com.mineauz.minigames.minigame.modules.TeamsModule.addTeam(TeamsModule.java:99) ~[?:?]
at au.com.mineauz.minigames.menu.MenuItemAddTeam.checkValidEntry(MenuItemAddTeam.java:49) ~[?:?]
at au.com.mineauz.minigames.Events.manualItemEntry(Events.java:649) ~[?:?]
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.7.0_75]
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) ~[?:1.7.0_75]
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) ~[?:1.7.0_75]
at java.lang.reflect.Method.invoke(Unknown Source) ~[?:1.7.0_75]
at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:334) ~[JavaPluginLoader$1.class:git-Cauldron-MCPC-Plus-1.7.10-1.1231.04.209]
... 36 more

Several weird 1.9 issues

After updating our server to 1.9 and using the 1.9 Dev Build for Minigames, we are encountering some weird issues.

Namely, in the minigame i tested with, i would occasionally see the word "null" in the chat box. Usually when something killed myself, so it would look like this

Sharrq was pummeled by Sharrq
null

Additionally, other occasionally vanish and are therefore unattackable. Occasionally they are also invincible, but that seems to only happen if they respawn and dont move (might be on purpose).

Additionally, sometimes killing another player doesnt award points. Sometimes it does, sometimes it doesnt.

Add BattleTrackerHook

Can you add BattleTracker hook that tells BattleTracker to stop tracking for deaths/kills when a player enters a minigame? It should also tell BattleTracker to resume when they finish/leave the minigame.

I was actually going to do this via a third plugin but couldn't find an API. I have the BT code ready though:

import mc.alk.tracker.Tracker;
import mc.alk.tracker.TrackerInterface;

import org.bukkit.Bukkit;
import org.bukkit.plugin.java.JavaPlugin;

public class Test extends JavaPlugin{

public static TrackerInterface ti = null;

public void loadTracker(){
    Tracker tracker = (Tracker) Bukkit.getPluginManager().getPlugin("BattleTracker");
    if (tracker != null){
        ti = Tracker.getInterface("MinigamesHook");
    } else {
        System.out.println("Warning BattleTracker not found. Implemantation disabled.");
    }
}

public void disableBattleTrackerForPlayer(String playername) {
    if (ti != null) {
        ti.stopTracking(playername);
    }
}

public void enableBattleTrackerForPlayer(String playername) {
    if (ti != null) {
        ti.resumeTracking(playername);
    }
}

}

Minigames issue with Crackshot classes

I use the plugin crackshot in my minigames classes.

Every time I reload / stop & start the server the config changes in the globalloadouts. eg gun ak-47 . 30 This config with replace the ' . ' with a ' ? '
So the guns stop working after I reload.

I don't think minigames saves the classes properly, I'm not sure.
Does anyone know what the problem is?

Bug: Defeat multiverse using treasure hunt

Bug:
Player goes to minigame world, a separate world with separate inventory from the spawn world. (Multiverse)

Player acquires items on the minigame world and starts a treasure hunt.

Player logs out. Upon login the player is teleported to the spawn world, and their spawn world inventory is overwritten with whatever inventory they had in the minigames world.

This bug occurs in Events.java:

ply.setOfflineMinigamePlayer(new OfflineMinigamePlayer(event.getPlayer().getUniqueId().toString()));
Location floc = ply.getOfflineMinigamePlayer().getLoginLocation();
ply.setRequiredQuit(true);
ply.setQuitPos(floc);

if(!ply.getPlayer().isDead() && ply.isRequiredQuit()){
    Bukkit.getScheduler().scheduleSyncDelayedTask(plugin, new Runnable() {

        @Override
        public void run() {
            ply.restorePlayerData();
        }
    });
    ply.teleport(ply.getQuitPos());

    ply.setRequiredQuit(false);
    ply.setQuitPos(null);
}

plugin.getLogger().info(ply.getName() + "'s data has been restored from file.");

Notice, the restore is scheduled for a later time and then the player is teleported immediately. So the player teleports and then the delayed task runs restoring their inventory on whatever world they end up on.

I made a quick patch which looks like this:

final Location tpPos = ply.getQuitPos();
Bukkit.getScheduler().scheduleSyncDelayedTask(plugin, new Runnable() {

    @Override
    public void run() {
        plugin.getLogger().info(ply.getName() + "'s data has been restored from file.");
        ply.restorePlayerData();
        ply.teleport(tpPos);
    }
});

ply.setRequiredQuit(false);
ply.setQuitPos(null);

I don't understand the reasoning behind the original logic enough to be confident enough to make a pull request. However this does appear to fix the problem.

Strangeness about this section of the code:
Why is it scheduled delayed anyways?
Why move the quit position of the minigame to the LoginLocation? Why does LoginLocation return world spawn?
Why setRequiredQuit(true) and then check if a quit is required?

Loadout Signs

How do you create loadout signs? I've been looking through all of your sources and I found one part in the wiki where it grazes the surface of sign making, and doesn't get into making a loadout sign in total. I think that it would really help to know how to work the signs and what to put on them to create a more custom game.

Spleef Setup

More of a Question/Feature Suggestion than an issue.

how are you intended to setup spleef? what flags would a typical spleef arena have set?

The reason I ask is because I dont see any "instabreak" flag for arenas so i have no way of allowing players to punch the floor and have it instantly despawn (as spleef should be). To remedy this, I gave all players an efficiency 5 hoe in the loadout. This worked great until players realized they can just smack eachother with the hoe and end the game faster.

So is there something I am missing that would allow instabreak on blocks? or is this a feature that can be added?

Teleportation

Not sure if this is in the right place, anyway
Could you add something where we can enable teleportation for each minigame?
if not then just a true/false option in the config maybe?

Cheers for the plugin, you're doing a good job!

Saving Player Creations in a world

I've got Minigames running my creative world to sandbox the creative inventory from the survival inventory, and so far it works, but I need minigames to not delete blocks that the player has built.

Is there any way I can achieve this?

CausticLasagne.

need another dev?

I've been spending quite a bit of time recently working through the java.util package and familiarizing myself with basic concepts to advanced topics in java such as generic classes and methods. Would you guys like help developing this plugin?

MySQL issue with 1.9

I updated my server and Minigames to 1.9, and it seems to run fine apart from connecting to and interacting with the remote MySQL database.

The server lags horrifically any time it tries to communicate, and eventually prints an error to the console.

https://gist.github.com/anonymous/531ccf6196abe7aa52e8bacf5a47993a

The errors are slightly different depending on what it was trying to do I guess, but that's the general idea. It's not an issue with connection on the database end, as our 1.8 server is still up and running Minigames 1.8 perfectly fine. I figure it must be a problem with our DB somehow though given nobody else seems to have the issue.

Let me know if you need anything else, thanks in advance!

Command Blocks

Ive gotten an error message "Failed to teleport, this could be related to world permission.:
trouble is, my command blocks work jsut fine outside the plugin.
and theres no regions here at all in my build.
i know this plugin denies all teleports but how about a toggle. in the next update.
the denied commands feature in the config can block teleporting just fine.
doesnt need a global denial of tps...geez.
so i cant use forced tp's in my command blocks for my games and its a bummer.

such as /tp @A[r=44] which is a teleport all players to one point in a radius command.

which is lame that its denied.
i need a true false perameter if possible...for AllowTeleports true/false. per minigame.
and honestly very suprised that this isnt a perameter already.
i hav the latest build too if your wondering.

Problem & Suggestion

Hello,
I vien by this post to inform you of beugs and suggestion:

Beugs:

  • Problem random chest, my server crashes when I activate this option on your plugin.
    I think it has to generate all the chests of the entire map. Only I want that part of the map for my mini-games.
  • Sometimes after creating a mini-game called X, it duplicates itself and create a second (X²), when I try to configure X configures me X² priority and this is quite annoying knowing that I must remove the two and recreate another ...
    PS: I have to check in the file / root / server / plugins / Minigames / minigames / ... if there was no copy of X calling X² and I did not find ...
    I hope you understand me is a bit of gibberish;)
  • When the map of regeneration is activated and this regeneration takes a fairly large area that makes my server crash ...
  • Problem of pvp. I create a mini game in team such as a flag and capture it is that players from the same team can beat them.
    In some games it does not happen but it's a problem for me ...
    I just find it hard to set the games.
  • Problem with the sign. It turns out that when I use a sign for my choosing red or blue team in the lobby mini games it's killing me directly ...
    It is quite irritating to die directly after click.
    Then his told me as what I am no longer in the game while I was teleport spawn point for my team.
    I noticed her when I use / mgm quit ...
    Its like told me what I can not use this command because I am in any part.

Suggestion:

  • Set a loadout the mini-games lobby to allow players to have items in case the person would leave the games instead of using sign (With commands given to items).
    On the other hand I would allow the players to choose their loadout in the same way as clicking each time on his devien irritating sign ...
    If possible her would be more clean and simple players.
  • Allow the administrator to change the name "Minigames" in "Mini-Jeux" because I am French and I would like this to be configurable in the file 'config.yml'
  • To allow the plugin to create several 'FloorDegenerator' because I would have wanted to create a The Walls with several wall that disappears after a certain time.
  • Ensure that in areas we can create a timing before an action is performed ...
    Let me explain: I wanted to create a pvpswap and after some time the player will be teleported into another arena, possess it stun the effect as in true pvpswap before teleportation so on ...
    These actions will execute the will with precise timing before the action is launched. On the other hand I would also send global message after a while to inform players of an event like the fallen kindom.
    Example: /broadcast Day 1, Night 1, Day 2, Night 2 ect ...
  • Set a spawn point for each team in the lobby. Its allows players to see who is in which team.
  • Allow to choose his team before joining a game ... Example: /mgm join X red. His could offer more options to players without using sign.

I mean yours has some people like to use sign for the mini-games but then preferred to use controls ...

I use mostly the plugin "ChestCommands" for all that is command or "CustomJoinItems" to assign commands to the items ...

Of course this strongly suits me to use commands in place of the sign ...

I highly recommend to perform my suggestions as this little make it simpler and cleaner plugin.

Thanks :
For my share yours to congratulate and encourage you because I can assure you that your plugin worth it and I recommend it to all who look at this post because it really interresting plugin offers functionality and complete ...
Not bad these feature must be supported by several plugin simultaneously while this plugin is all in one ...
The possibility of creating mini games are huge ... I have a Minecraft server and I can assure you that there are games that you have never seen in the world of Minecraft if this plugin did not exist !
I encourage you to continue and if there are ways to make donations would love to help you with your work  and to encourage you ...

On the other hand I understand entirely if you can resourare some beugs or suggestion I offer you ...
This is a puzzle for you and a big work !

PS: Sorry for my translation I'm not endow in English ;)

I shall send you my greeting friendly. Mr Charly JORDAN

Bug: Fall damage is applied after leaving a game

If a player is in mid air (falling) when a minigame is over, they are teleported to the lobby, but the fall damage is still applied to the player. This damage should be cancelled because players who enter minigames with items loose their items like this.

Various Issues

  • Autobalance feature is not configurable, and can interfere heavily in team gametypes. Often times, players switch teams 3 to 4 times throughout a game.
  • There is no option or ability to toggle fly while in a minigame.
  • Loadouts cannot be assigned to teams.
  • Minigames breaks when a server restarts while there is a minigame running. The players (upon restart) are no long in the minigame, are not restricted from griefing .. and do not have the option of warping to the lobby location or a non-griefable area.
  • Individual team lives are not configurable.
  • A minigame where "Creative Mode" is Enabled does not work. Players receive "You cannot fly during a minigame" error message

Watch The Jungle Book Online

Watch The Jungle Book OnlineWatch The Jungle Book OnlineWatch The Jungle Book OnlineWatch The Jungle Book OnlineWatch The Jungle Book Online

Null message on death

In the newest version of Spigot/Bukkit (tested in both environments), a death in a minigame would display "null" instead of nothing.

Fixed it in my fork.

Bug: Scoreboard names not visible

Because our players have name prefixes, the scoreboard signs cannot display their actual nickname but their prefix only. Can we add an option to display the nickname only and not the long player name (with the the prefix) on scoreboard signs?

Hunger don't deplete

I have been working on this issue for about a year off an on, I made a second PVP min game and it has same issue, no matter what I try the hunger bar will not go down.

How to Assign a loadout to a team?

I've been testing with your plugin, (it is amazing), and I wanted to make a custom Version of Infected, without the players switching to the infected team. Is there any way that I could do this? Also I wanted to edit the classes that the teams get, and can't seem to find how to do that.

Minigame does not exist & Error in console

[18:06:42 INFO]: Gr0up115 issued server command: /minigame reload

org.bukkit.command.CommandException: Unhandled exception executing command 'mini
game' in plugin Minigames v1.5.3
at org.bukkit.command.PluginCommand.execute(PluginCommand.java:46) ~[cra
ftbukkit.jar:git-Bukkit-1.7.2-R0.2-b2974jnks]
at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:19
6) ~[craftbukkit.jar:git-Bukkit-1.7.2-R0.2-b2974jnks]
at org.bukkit.craftbukkit.v1_7_R1.CraftServer.dispatchCommand(CraftServe
r.java:542) ~[craftbukkit.jar:git-Bukkit-1.7.2-R0.2-b2974jnks]
at net.minecraft.server.v1_7_R1.PlayerConnection.handleCommand(PlayerCon
nection.java:932) [craftbukkit.jar:git-Bukkit-1.7.2-R0.2-b2974jnks]
at net.minecraft.server.v1_7_R1.PlayerConnection.a(PlayerConnection.java
:814) [craftbukkit.jar:git-Bukkit-1.7.2-R0.2-b2974jnks]
at net.minecraft.server.v1_7_R1.PacketPlayInChat.a(PacketPlayInChat.java
:28) [craftbukkit.jar:git-Bukkit-1.7.2-R0.2-b2974jnks]
at net.minecraft.server.v1_7_R1.PacketPlayInChat.handle(PacketPlayInChat
.java:47) [craftbukkit.jar:git-Bukkit-1.7.2-R0.2-b2974jnks]
at net.minecraft.server.v1_7_R1.NetworkManager.a(NetworkManager.java:146
) [craftbukkit.jar:git-Bukkit-1.7.2-R0.2-b2974jnks]
at net.minecraft.server.v1_7_R1.ServerConnection.c(SourceFile:134) [craf
tbukkit.jar:git-Bukkit-1.7.2-R0.2-b2974jnks]
at net.minecraft.server.v1_7_R1.MinecraftServer.u(MinecraftServer.java:6
55) [craftbukkit.jar:git-Bukkit-1.7.2-R0.2-b2974jnks]
at net.minecraft.server.v1_7_R1.DedicatedServer.u(DedicatedServer.java:2
50) [craftbukkit.jar:git-Bukkit-1.7.2-R0.2-b2974jnks]
at net.minecraft.server.v1_7_R1.MinecraftServer.t(MinecraftServer.java:5
45) [craftbukkit.jar:git-Bukkit-1.7.2-R0.2-b2974jnks]
at net.minecraft.server.v1_7_R1.MinecraftServer.run(MinecraftServer.java
:457) [craftbukkit.jar:git-Bukkit-1.7.2-R0.2-b2974jnks]
at net.minecraft.server.v1_7_R1.ThreadServerApplication.run(SourceFile:6
17) [craftbukkit.jar:git-Bukkit-1.7.2-R0.2-b2974jnks]
Caused by: java.lang.NullPointerException
at com.pauldavdesign.mineauz.minigames.Minigame.loadMinigame(Minigame.ja
va:1609) ~[?:?]
at com.pauldavdesign.mineauz.minigames.commands.ReloadCommand.onCommand(
ReloadCommand.java:98) ~[?:?]
at com.pauldavdesign.mineauz.minigames.commands.CommandDispatcher.onComm
and(CommandDispatcher.java:138) ~[?:?]
at org.bukkit.command.PluginCommand.execute(PluginCommand.java:44) ~[cra
ftbukkit.jar:git-Bukkit-1.7.2-R0.2-b2974jnks]
... 13 more

"[SQLITE_MISUSE] Library used incorrectly (out of memory)" on server shutdown

Hi, I don't know if this error should be "important" or it can be freely ignored? Lol why it says "Out Of memory" which the server has like 16Gb allocated?

[02:23:38] [Server thread/INFO]: [Minigames] Disabling Minigames v1.9.0.166
[02:23:38] [Server thread/INFO]: Minigames successfully disabled.
[02:23:41] [pool-71-thread-1/WARN]: java.sql.SQLException: [SQLITE_MISUSE] Library used incorrectly (out of memory)
[02:23:41] [pool-71-thread-1/WARN]: at org.sqlite.DB.newSQLException(DB.java:383)
[02:23:41] [pool-71-thread-1/WARN]: at org.sqlite.DB.newSQLException(DB.java:387)
[02:23:41] [pool-71-thread-1/WARN]: at org.sqlite.DB.throwex(DB.java:374)
[02:23:41] [pool-71-thread-1/WARN]: at org.sqlite.NativeDB.prepare(Native Method)
[02:23:41] [pool-71-thread-1/WARN]: at org.sqlite.DB.exec(DB.java:68)
[02:23:41] [pool-71-thread-1/WARN]: at org.sqlite.Conn.setAutoCommit(Conn.java:336)
[02:23:41] [pool-71-thread-1/WARN]: at au.com.mineauz.minigames.backend.ConnectionHandler.endTransaction(ConnectionHandler.java:144)
[02:23:41] [pool-71-thread-1/WARN]: at au.com.mineauz.minigames.backend.sqlite.SQLiteBackend.saveStatSettings(SQLiteBackend.java:260)
[02:23:41] [pool-71-thread-1/WARN]: at au.com.mineauz.minigames.backend.BackendManager$8.call(BackendManager.java:225)
[02:23:41] [pool-71-thread-1/WARN]: at au.com.mineauz.minigames.backend.BackendManager$8.call(BackendManager.java:222)
[02:23:41] [pool-71-thread-1/WARN]: at java.util.concurrent.FutureTask.run(FutureTask.java:266)
[02:23:41] [pool-71-thread-1/WARN]: at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
[02:23:41] [pool-71-thread-1/WARN]: at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
[02:23:41] [pool-71-thread-1/WARN]: at java.lang.Thread.run(Thread.java:745)

Desertion Timer Possibility?

So like all online games, there are exploits. I am running a server where we use the mini-games strictly for PVP only as we are a PVE server. Also, we tied the economy to the MGM. Once someone wins they would receive X bits, my problem is, people can just join together and quit to farm bits and not do anything else since there is no bad side effects to doing this.

What I suggest is the possibility to be able to distinguish what event they do to leave the arena and even putting a, "Desertion timer" (thought of from WoW PVP for leaving).

Is this possible? Thanks.

Bug with lang

I am French and I wanted to translate the plugin but when I put the file and that I rule in config.yml. my file is empty and load the file en_AU

[Start Point] Blue team

When I used command
/minigame tool start blue
to set the spawn point for blue team, it turns out that the point was instead added for red team.

Teleportation From Lobby To Start!

I had created last man standing game, but when people press sign and join lobby only 1 player go to his start and the rest are still in the lobby!
I had created capture the flag minigame too, red team only go to his start and the blue team is still i the lobby.
Please help as soon as possible and thanks. :)

Minigames doesn't save properly

I'm editing classes, after reloading the server the classes go back to how they was before editing them.

Also, block regeneration is broken.
Blocks do not re-generate properly after a minigame has finished.

Minigames 1.9

Oi! Its me again, didn't noticed you had it in your github, it were by Razz I guess but whatever...

I tested it and it work on "Single Player" mode, but when 2 players joins , the countdown stops at 10 and spam alot the console that couldn't init sounds.

On SP games, it throws an error while finishing the game.

I've found this link from the minigames's bukkit page, I guess the author added it

Spleef, Arena Does Not Exist. Error.

Here is my server log.
When we tried joining our spleef arena it came back with this and said that the arena does not exist.
I've checked the configs and everything is as it was yesterday when it was working.
Do you have any solution? Thanks for your help.
http://shrib.com/minigameerrornullexceptionhelpdamnohnoo
When doing the command /mgm reload I get, An internal error occurred while attempting to perform this command.

Time & lives limit for single player

The time limit is only for multiplayer, as for the lives limit.
Please make it usable for single player, force player to quit the game when time out or out of lives.
This can be useful for gamemode like parkour or mazes.
Thanks!

ScoreBoard

I got the plugin and set up a few minigames and I have a scoreboard on the side and at the time I thought nothing of it and after I deleted the plugin becuase I wanted my server to be survival only and I still have the scoreboard on the side and I dont know how to remove it please help me thanks

Command block teleport not working

In a jump puzzle that I made I cannot activate a command block. it says: Failed to teleport. This could be related to world permissions.

I am OP and should override any restrictions. I also checked if there were any world guard regions denying anything and there aren't.

Redstone does work however.

Loadouts how to make

How do i set a loadout that is the only loadout players can use? im making spleef so I hope to add that item, im using the latest version of minigames so it should work

Bug with treasure hunt?

It worked a while then messed up so i made a new one and worked fine for a while and it messed again and i dont want to redo it again so i left it. It will spawn with nothin in it more often then with stuff in it. not sure if im missing something in the setup but any advice on this would be awesome :)

WorldGuard not allowing exit tp after game finish.

I have set up worldguard to make a do not exit zone on one of my minigames (flag exit deny). when the game finishes it does not allow the player to be teleported out of the zone. I have to manually kill them.

Could you fix this bug or implement your own border system similar to how regeneration works except that players cannot cross the boundary?

Thank you!

PlayerInteractEvent error

Hi, testing the minigames plugin and I got this error:

[23:17:40 ERROR]: Could not pass event PlayerInteractEvent to Minigames v1.9.0.165
org.bukkit.event.EventException
at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:310) ~[spigot-1.9.2.jar:git-Spigot-f6feaaa-f326992]
at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:62) ~[spigot-1.9.2.jar:git-Spigot-f6feaaa-f326992]
at org.bukkit.plugin.SimplePluginManager.fireEvent(SimplePluginManager.java:502) [spigot-1.9.2.jar:git-Spigot-f6feaaa-f326992]
at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:487) [spigot-1.9.2.jar:git-Spigot-f6feaaa-f326992]
at org.bukkit.craftbukkit.v1_9_R1.event.CraftEventFactory.callPlayerInteractEvent(CraftEventFactory.java:231) [spigot-1.9.2.jar:git-Spigot-f6feaaa-f326992]
at net.minecraft.server.v1_9_R1.PlayerInteractManager.a(PlayerInteractManager.java:483) [spigot-1.9.2.jar:git-Spigot-f6feaaa-f326992]
at net.minecraft.server.v1_9_R1.PlayerConnection.a(PlayerConnection.java:888) [spigot-1.9.2.jar:git-Spigot-f6feaaa-f326992]
at net.minecraft.server.v1_9_R1.PacketPlayInUseItem.a(SourceFile:55) [spigot-1.9.2.jar:git-Spigot-f6feaaa-f326992]
at net.minecraft.server.v1_9_R1.PacketPlayInUseItem.a(SourceFile:11) [spigot-1.9.2.jar:git-Spigot-f6feaaa-f326992]
at net.minecraft.server.v1_9_R1.PlayerConnectionUtils$1.run(SourceFile:13) [spigot-1.9.2.jar:git-Spigot-f6feaaa-f326992]
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) [?:1.8.0_72]
at java.util.concurrent.FutureTask.run(FutureTask.java:266) [?:1.8.0_72]
at net.minecraft.server.v1_9_R1.SystemUtils.a(SourceFile:45) [spigot-1.9.2.jar:git-Spigot-f6feaaa-f326992]
at net.minecraft.server.v1_9_R1.MinecraftServer.D(MinecraftServer.java:721) [spigot-1.9.2.jar:git-Spigot-f6feaaa-f326992]
at net.minecraft.server.v1_9_R1.DedicatedServer.D(DedicatedServer.java:400) [spigot-1.9.2.jar:git-Spigot-f6feaaa-f326992]
at net.minecraft.server.v1_9_R1.MinecraftServer.C(MinecraftServer.java:660) [spigot-1.9.2.jar:git-Spigot-f6feaaa-f326992]
at net.minecraft.server.v1_9_R1.MinecraftServer.run(MinecraftServer.java:559) [spigot-1.9.2.jar:git-Spigot-f6feaaa-f326992]
at java.lang.Thread.run(Thread.java:745) [?:1.8.0_72]
Caused by: java.lang.NullPointerException
at au.com.mineauz.minigames.Events.playerInterract(Events.java:269) ~[?:?]
at sun.reflect.GeneratedMethodAccessor47.invoke(Unknown Source) ~[?:?]
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:1.8.0_72]
at java.lang.reflect.Method.invoke(Method.java:498) ~[?:1.8.0_72]
at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:306) ~[spigot-1.9.2.jar:git-Spigot-f6feaaa-f326992]
... 17 more

Will use this build on my 1.9.2 server, due today to update (April 10)

Slowness is not a valid potion name!

Adding this potion effect does not work!

You say we can use the ID for adding potion effects, but NOPE! I tried to use the id 2, which is slowness, but it says 'not a valid potion name'. So I try to use 'slowness' but it also says it's not a valid potion name.

I am on the page you provided us http://minecraft.gamepedia.com/Potion_effects#List_of_effects

Yet slowness doesn't work.

Speed works, but I really need to add slowness to one of the loadouts!

Can you fix this?

Thanks Razz.

Option to Disable Items in Inventory

Can we have a config option, so that if set to true, it does not allow players who have items in their inventory to join minigames. People keep loosing items in MGM's in my server because of AuthMe vs Minigames compability issues. Thanks!

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.