Hi all, My very first bukkit plugin, originally just to test with bukkit and Git. Filler - The fill/fillhollow plugin: Version: 0.2 Build and tested on: Bukkit 123; CraftBukkit 271 Author: Master-Guy Features: Fill a cubic Fill a cubic and make it hollow Hot-swappable configuration file (Wildcard "*" for allowedPlayers and allowedBlocks) Changelog: Version 0.2 Added colors to the plugin Renamed the plugin from "MG" to "Filler" Note for the updaters: The settings file is renamed in this version, so you need to re-do your settings! Version 0.1 First release, was just for testing purposes ToDo: Suggestions accepted: Allow use of "/fill wood" instead of "/fill 5" Usage: Right-click two blocks with a stick (item 280) to set a cube. Then type "/fill <block ID>" or "/fillhollow <block ID>" (both without quotes) to fill the cube. "/fillhollow" fills the inner part of the cube with air, where there only is a one block thick wall. Can also be used on flat surfaces to create walls, floors or roofs. Download: JAR Source I'm also looking for advise/hints/improvements for my plugin, but please post them here: http://forums.bukkit.org/threads/my...llow-asking-for-advise-suggestions-hints.595/ Wkr, "Master-Guy" Marcel
This seems really good, its like the basic of Cuboid. I would add to the server but sadly this isn't for only admins.
Hi.... if you know enough - can you make a modular Cuboid-Light? I'd like to see /ccircle (to make rings) command and perhaps other functions. It would be a great help - my server is looking for someone to put this together - Protection would be great but we'll get what we can!
It's not working for me. I get this error. Code: SEVERE: Could not pass event PLAYER_COMMAND to MG java.lang.NoSuchMethodError: org.bukkit.event.player.PlayerChatEvent.getPlayer() Lorg/bukkit/Player; at com.bukkit.mg.mg.MGPlayerListener.onPlayerCommand(MGPlayerListener.ja va:34) at org.bukkit.plugin.java.JavaPluginLoader.callEvent(JavaPluginLoader.ja va:134) at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.j ava:199) at net.minecraft.server.NetServerHandler.c(NetServerHandler.java:540) at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:521) at net.minecraft.server.Packet3Chat.a(SourceFile:24) at net.minecraft.server.NetworkManager.a(SourceFile:232) at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:63) at net.minecraft.server.NetworkListenThread.a(SourceFile:104) at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:261) at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:197) at net.minecraft.server.ThreadServerApplication.run(SourceFile:512)
The errors are because of all the updates yesterday. Will update the plugin in a moment, hold on. Edit: BUILD AGAINST: Bukkit snapshot 0.0.1 Bamboo build 42 CraftBukkit snapshot 0.0.1 Bamboo build 50
I don't think the right clicking on blocks is working. Right clicking on a block with a stick does nothing. Typing /fill says two positions must be set first. Using builds 42 and 50. Other plugins: ClothColor,General,MagicCarpet,MG,MinecartMania,Plantspreader,vPlayersOnline,vStopFire
Strange, cause it used to work.. At this moment there is another issue with the Bukkit builds, so a fix will have to wait for now Edit: Should be working again
Thanks for this, I'm having a lot of fun with it! It would be neat if fill supported using block names as well as the numbers, the way General uses items.db. Ex /fillhollow wood or /fill air .
Great Plugin, Except i have a bug for you: Entering an id that does not excist, Bugs the server and corrupts your map. At least that is what happened to my server and after two retrys we took MG.jar out of the plugin map. Please fix.
Re-build with bukkit builds 57/87/31 Now only allows specified players to use the tool and only allows the specified block types to be used. The tool ID can now also be specified. Finally: The commands can also be defined inside the configuration file. This means it does not need to be /fill, but it will be by default. Configuration file will be generated or updated on first run and can be changed run-time (without server restart!!) It's location, like it will be for all my plugins, is the "settings" directory, which it will create if it does not yet exist. As for Miome: I will be working on that next, but it seems there is bug in the Bukkit build that prevents me from using that. With kind regards, MG
@Master-Guy - thanks for looking into it! I just downloaded version b88781b of MG.jar, and ran into a problem. I'm running with a CraftBukkit build I just download, but I'm having trouble getting the build #. I'll update this post as soon as I figure that out. EDIT: Based on the time I downloaded it, it was either #89 or #90. I just updated to build #95 and saw the same issue. Here's the log of the problem: Code: 2011-01-19 19:01:31 [INFO] Starting minecraft server version Beta 1.2_01 2011-01-19 19:01:31 [INFO] Loading properties 2011-01-19 19:01:31 [INFO] Starting Minecraft server on *:25565 2011-01-19 19:01:31 [WARNING] **** SERVER IS RUNNING IN OFFLINE/INSECURE MODE! 2011-01-19 19:01:31 [WARNING] The server will make no attempt to authenticate usernames. Beware. 2011-01-19 19:01:31 [WARNING] While this makes the game possible to play without internet access, it also opens up the ability for hackers to connect with any username they choose. 2011-01-19 19:01:31 [WARNING] To change this, set "online-mode" to "true" in the server.settings file. 2011-01-19 19:01:31 [INFO] Preparing level "world" 2011-01-19 19:01:31 [INFO] Preparing start region Preparing spawn area: 8% Preparing spawn area: 20% Preparing spawn area: 36% Preparing spawn area: 57% Preparing spawn area: 69% Preparing spawn area: 77% Preparing spawn area: 89% 2011-01-19 19:01:38 [INFO] WorldEdit 2.11 loaded. 2011-01-19 19:01:38 [INFO] WorldEdit: No known permissions plugin detected. Using configuration file for permissions. (code: 11) block loaded 2011-01-19 19:01:38 [INFO] [WarpGate] version [1.4] (Polarized) loaded 2011-01-19 19:01:39 [INFO] [General] version [1.8] (Ninja) loaded 2011-01-19 19:01:39 [INFO] Loading wand-commands.txt 2011-01-19 19:01:39 [INFO] WandPlugin version 0.2 is enabled 2011-01-19 19:01:39 [INFO] Loading spell-classes.txt 2011-01-19 19:01:39 [INFO] SpellsPlugin version 0.25 is enabled 2011-01-19 19:01:40 [INFO] [MYHOME]: 3 homes loaded 2011-01-19 19:01:40 [INFO] MyHome 1.6.2 enabled Take yourself wonder by wonder, using /magiccarpet or /mc. Magic Carpet version 1.2 is enabled! MG enabled 2011-01-19 19:01:40 [INFO] -=- 2011-01-19 19:01:40 [INFO] File input error: java.io.FileNotFoundException: settings/MG.ini (No such file or directory) 2011-01-19 19:01:40 [INFO] File input error: [Ljava.lang.StackTraceElement;@df2d38 2011-01-19 19:01:40 [INFO] -=- 2011-01-19 19:01:40 [INFO] -=- 2011-01-19 19:01:40 [INFO] File input error: java.io.FileNotFoundException: settings/MG.ini (No such file or directory) 2011-01-19 19:01:40 [INFO] File input error: [Ljava.lang.StackTraceElement;@11e831 2011-01-19 19:01:40 [INFO] -=- 2011-01-19 19:01:40 [INFO] -=- 2011-01-19 19:01:40 [INFO] File input error: java.io.FileNotFoundException: settings/MG.ini (No such file or directory) 2011-01-19 19:01:40 [INFO] File input error: [Ljava.lang.StackTraceElement;@1a2f02e 2011-01-19 19:01:40 [INFO] -=- 2011-01-19 19:01:40 [INFO] -=- 2011-01-19 19:01:40 [INFO] File input error: java.io.FileNotFoundException: settings/MG.ini (No such file or directory) 2011-01-19 19:01:40 [INFO] File input error: [Ljava.lang.StackTraceElement;@467991 2011-01-19 19:01:40 [INFO] -=- 2011-01-19 19:01:40 [INFO] -=- 2011-01-19 19:01:40 [INFO] File input error: java.io.FileNotFoundException: settings/MG.ini (No such file or directory) 2011-01-19 19:01:40 [INFO] File input error: [Ljava.lang.StackTraceElement;@d75c47 2011-01-19 19:01:40 [INFO] -=- 2011-01-19 19:01:40 [INFO] Loading Gate: spawn,-36,67,-16,718.05023,treehouse,-1, 2011-01-19 19:01:40 [INFO] Loading Gate: reed,-53,65,-281,1898.0996,null,-1, 2011-01-19 19:01:40 [INFO] Loading Gate: skycity,-347,102,-178,450.2994,hotsprings,-1, 2011-01-19 19:01:40 [INFO] Loading Gate: hotsprings,-555,68,-305,10894.489,treehouse,-1, 2011-01-19 19:01:40 [INFO] Loading Gate: treehouse,-365,78,-383,1092.4504,hotsprings,-1, 2011-01-19 19:01:40 [INFO] Minecart Mania Core version 0.61 is enabled! 2011-01-19 19:01:40 [INFO] Minecart Mania Autocart version 0.43 is enabled! 2011-01-19 19:01:40 [INFO] Done! For help, type "help" or "?" stop 2011-01-19 19:20:28 [INFO] CONSOLE: Stopping the server.. 2011-01-19 19:20:28 [INFO] Stopping server 2011-01-19 19:20:28 [INFO] Saving chunks Once the server was stopped, I created the settings directory and started back up. Now no longer prints the error. Code: 2011-01-19 19:22:29 [INFO] Starting minecraft server version Beta 1.2_01 2011-01-19 19:22:29 [INFO] Loading properties 2011-01-19 19:22:29 [INFO] Starting Minecraft server on *:25565 2011-01-19 19:22:29 [WARNING] **** SERVER IS RUNNING IN OFFLINE/INSECURE MODE! 2011-01-19 19:22:29 [WARNING] The server will make no attempt to authenticate usernames. Beware. 2011-01-19 19:22:29 [WARNING] While this makes the game possible to play without internet access, it also opens up the ability for hackers to connect with any username they choose. 2011-01-19 19:22:29 [WARNING] To change this, set "online-mode" to "true" in the server.settings file. 2011-01-19 19:22:29 [INFO] Preparing level "world" 2011-01-19 19:22:29 [INFO] Preparing start region Preparing spawn area: 8% Preparing spawn area: 20% Preparing spawn area: 36% Preparing spawn area: 57% Preparing spawn area: 69% Preparing spawn area: 77% Preparing spawn area: 89% 2011-01-19 19:22:36 [INFO] WorldEdit 2.11 loaded. 2011-01-19 19:22:36 [INFO] WorldEdit: No known permissions plugin detected. Using configuration file for permissions. (code: 11) block loaded 2011-01-19 19:22:36 [INFO] [WarpGate] version [1.4] (Polarized) loaded 2011-01-19 19:22:36 [INFO] [General] version [1.8] (Ninja) loaded 2011-01-19 19:22:36 [INFO] Loading wand-commands.txt 2011-01-19 19:22:36 [INFO] WandPlugin version 0.2 is enabled 2011-01-19 19:22:36 [INFO] Loading spell-classes.txt 2011-01-19 19:22:36 [INFO] SpellsPlugin version 0.25 is enabled 2011-01-19 19:22:38 [INFO] [MYHOME]: 3 homes loaded 2011-01-19 19:22:38 [INFO] MyHome 1.6.2 enabled Take yourself wonder by wonder, using /magiccarpet or /mc. Magic Carpet version 1.2 is enabled! MG enabled 2011-01-19 19:22:38 [INFO] File: settings/MG.ini created 2011-01-19 19:22:38 [INFO] Loading Gate: spawn,-36,67,-16,718.05023,treehouse,-1, 2011-01-19 19:22:38 [INFO] Loading Gate: reed,-53,65,-281,1898.0996,null,-1, 2011-01-19 19:22:38 [INFO] Loading Gate: skycity,-347,102,-178,450.2994,hotsprings,-1, 2011-01-19 19:22:38 [INFO] Loading Gate: hotsprings,-555,68,-305,10894.489,treehouse,-1, 2011-01-19 19:22:38 [INFO] Loading Gate: treehouse,-365,78,-383,1092.4504,hotsprings,-1, 2011-01-19 19:22:38 [INFO] Minecart Mania Core version 0.61 is enabled! 2011-01-19 19:22:38 [INFO] Minecart Mania Autocart version 0.43 is enabled! 2011-01-19 19:22:38 [INFO] Done! For help, type "help" or "?" But, all is not ok. Whenever I right-click, even to place a block, it prints 'You are not allowed to use this!'. Is that deliberate? I'd hate to be building a large structure and have that come up with every block ... Once I add myself to the config file, things are good. I like that position 1 and position 2 are in different colors, that should help me keep track of things better. It would be nice in the config file if we could use * to indicate all, like all users or all blocks.
Hi, Thank you for your feedback. I've added the * to the possibilities of the allowedPlayers and allowedBlocks. Please note that if you set it for the blocks, and you use a non-block, it might corrupt your map, depending on what block you used! I've also fixed the issue with the message showing up every block placement. This was because I did two checks the wrong way around. As for the startup issue, I forgot to add the command that creates the directory.. very strange.. Anyhow, it should do that on itself now. Re-build for: Bukkit builds 47 through 63 Craftbukkit build 61 through 102 Scrapbukkit build 16 through 37
It loads up fine but when i use it it says "you are not allowed to use this! i am a admin do you need to set permissions if so how?
After starting the server with the plugin loaded, it generates a folder called "settings". In this folder you fill find a .ini file with the name of the plugin (MG.ini). Here you can configure the plugin for you server.
Code: SEVERE: Could not pass event PLAYER_COMMAND to MG java.lang.ArrayIndexOutOfBoundsException: 1 at com.bukkit.mg.mg.MGPlayerListener.onPlayerCommand(MGPlayerListener.ja va:47) at org.bukkit.plugin.java.JavaPluginLoader.callEvent(JavaPluginLoader.ja va:135) at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.j ava:201) at net.minecraft.server.NetServerHandler.c(NetServerHandler.java:547) at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:523) at net.minecraft.server.Packet3Chat.a(SourceFile:24) at net.minecraft.server.NetworkManager.a(SourceFile:232) at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:65) at net.minecraft.server.NetworkListenThread.a(SourceFile:104) at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:261) at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:197) at net.minecraft.server.ThreadServerApplication.run(SourceFile:512) That always happens whenever I use a command.
I was just wondering if you could rename this plug-in to something a bit more specific to its use. As i keep forgetting what the hell MG is every time it loads!
Fixed the problem yet? :/ EDIT: Maybe I'm supposed to post this in the other topic? I'll go post it there.
Updated the thread, and updated the plugin for CB211. Tested the plugin, it gives me no errors at all while using this plugin. Note for the updaters: The settings file is renamed in this version, so you need to re-do your settings!
https://github.com/Master-Guy/MG/raw/master/bin/Filler.jar --- merged: Feb 5, 2011 8:06 AM --- I've patched the plugin, now it does create the directory if it does not exist, and it is located in the /plugins/<pluginname>/ directory now.
Sorry, not from my side.. My personal life is a bit too busy to keep me programming. But the code is open-source and anyone is welcome to update it.