YourGS
YourGS
YourGS is a new plugin made to let you buy chunks easily! All you need is WorldGuard, WorldEdit and Vault + Economy-Plugin on your Bukkit-Server. Version: 1.8
What is new in 1.8?
- Fixed a bug with custom versions and Version-Checker
- Added new command-system for faster command-execution
- Added custom modifiable /gs info file
- Added 2 commands, /gs animals - shows the amount of animals on your gs and /gs kickall - kicks all non-members from a region
- Performance updates...
Instructions
Follow these points to use YourGS:
- Walk to a free chunk, you can see if it's bought or not when you use /gs info
- Now if you have enough money to buy a chunk, type /gs buy - or /gs buy empty if you don't want that the plugin will mark your region
- You have bought this chunk! Now you can do anything what you want with it, you can add people, remove people, you can offer it or you can sell it
Commands
You have many new commands with this plugin, some are experimental and don't work very well. You don't have to enable them for default players, but you can test them to report the errors to me. Here a list of all commands. There are no permissions noted because you can change permissions in the file plugins/YourGS/perms.yml
- /gs buy - Buys the chunk you are standing on
- /gs sell - Sells the chunk you are on, if you are the owner
- /gs add [name] - Adds a player to this chunk
- /gs remove [name] - Removes a player from this chunk
- /gs addall [name] - Adds a member to all regions of you!
- /gs removeall (-a) (name) Removes all members from this region or if you're using the -a flag it removes the member from all your regions
- /gs list (page) - Lists your bought regions
- /gs info - Shows informations about the region you are standing on
- /gs unlock/lock - Locks/Unlocks a region. If the region is locked, you can't kill friendly mobs anymore (Somehow you can still do this *fixing*)
- /gs tnt [allow/deny] - Allows/Denies tnt on that region
- /gs potion [allow/deny] - Allows/Denies potions on that region
- /gs chestshop [allow/deny] - Allows/Denies chestshops on that region. Only if ChestShop is installed!
- /gs home [allow/deny] - Allows/Denies homes. Only if Essentials is installed!
- /gs offer [amount] - Offers that region for [amount]. Type it 2 times (doesn't have to be the same amount) to deoffer that region
- /gs discourage - Buys that region from a player
- /gs take - Takes a region of a player
- /gs reload - Reloads the plugin
- /gs resetconfig (true) - Resets the configs
- /gs cconfig - configures the config ingame
- /gs street - creates a street - Only in Experimental & Comming soon - Working quiet well, but it's a bit laggy - You can use /gs street N 2 [blockType] (true for autoconnect-test)
- /gs select [width]x[length] (direction) - Selects an area to edit
- /gs editregion [action] (args) - Edits the selected Area
- /gs animals - Shows the amount of animals on your region
- /gs kickall - Kicks all non-members from a region
Features
With YourGS you can do many things. Good thing you can use it in the language of your server! Simply edit the messages.yml file in your YourGS-folder! Also you can change permissions and settings. Most of the settings are general types, like the amount of money you have to pay when you buy a chunk. Some other settings are experimental ones. They should have nearly no errors, otherways: contact me. If you are using ChestShop and you want, that people have to pay for creating a shop, then you can use the "ChestShop-Flag". Enable it by setting the setting 'chestShopFlag' in the settings.yml - file to enabled or ingame with /gs cconfig setting chestShopFlag string enabled. Now you have a 4th flag, which you can enable by using /gs chestshop [allow/deny] (it's not listet in /gs help). Now you have to pay the amount which has been setted under the chestShopFlag in settings.yml. If done so the ChestShopFlag should be green in /gs info's flags part and it should stand "ChestShops enabled" there. Now you can create ChestShops or use them again on this gs! Also with the ChestShopFlag you can deny that people can create ChestShops outside of bought regions! (Expect they have the permission YourGS.* or whatever you changed it to) Another setting is the hunger-flag, when you enable it and people dig or build outside of bought regions they will get hungry, per digged/built block 1 hungerpoint less!
Planned
There are many things planned:
- A special system to let you create your own flags
- Reducing lags at most commands
Bugs
Any Bugs? Report them to me! Please tell me, what command you did and send me the stacktrace. Known bugs:
Selecting an area may only be able in one direction, pretty mistery bug, I don't know how this happens, sometimes it will happen, sometimes everything is fine- Fixed with /gs select [x]x[y] (direction)
Wishes/Criticism
You've got wishes for the plugin? Good Thing! Post it and I will see, if I can realize it! I'm always fine with criticism, so tell me what I can do better / what is good or bad.
I encounter the same issue:
[17:06:26 INFO]: [YourGS] An Exception has been caught!
[17:06:26 INFO]: [YourGS] org.xml.sax.SAXParseException : Premature end of file.
at com.sun.org.apache.xerces.internal.parsers.DOMParser.parse(DOMParser.java:257)
at com.sun.org.apache.xerces.internal.jaxp.DocumentBuilderImpl.parse(DocumentBuilderImpl.java:339)
at javax.xml.parsers.DocumentBuilder.parse(DocumentBuilder.java:121)
at de.k.manu4021.yourgs.util.UpdateChecker.updateNeeded(UpdateChecker.java:40)
at de.k.manu4021.yourgs.YourGS.onEnable(YourGS.java:86)
at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:321)
at org.bukkit.plugin.java.JavaPluginLoader.enablePlugin(JavaPluginLoader.java:340)
at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManager.java:405)
at org.bukkit.craftbukkit.v1_8_R3.CraftServer.loadPlugin(CraftServer.java:357)
at org.bukkit.craftbukkit.v1_8_R3.CraftServer.enablePlugins(CraftServer.java:317)
at net.minecraft.server.v1_8_R3.MinecraftServer.s(MinecraftServer.java:414)
at net.minecraft.server.v1_8_R3.MinecraftServer.k(MinecraftServer.java:378)
at net.minecraft.server.v1_8_R3.MinecraftServer.a(MinecraftServer.java:333)
at net.minecraft.server.v1_8_R3.DedicatedServer.init(DedicatedServer.java:263)
at net.minecraft.server.v1_8_R3.MinecraftServer.run(MinecraftServer.java:525)
at java.lang.Thread.run(Thread.java:745)
[17:06:26 INFO]: [YourGS] Shutting down...
It seems that the error came from a build-in Updatechecker. Is ist possible to disable the update checker?
11:20:10 [INFO] [YourGS] Enabling YourGS v1.8
11:20:10 [INFO] [YourGS] Started Enabling...
11:20:10 [INFO] [YourGS] Checking for updates...
11:20:10 [WARN] [Fatal Error] :1:1: Vorzeitiges Dateiende.
11:20:10 [INFO] Creating file...
11:20:10 [INFO] File created!
11:20:10 [INFO] [YourGS] An Exception has been caught!
11:20:10 [INFO] [YourGS] org.xml.sax.SAXParseException : Vorzeitiges Dateiende.
11:20:10 at com.sun.org.apache.xerces.internal.parsers.DOMParser.parse(Unknown Source)
11:20:10 at com.sun.org.apache.xerces.internal.jaxp.DocumentBuilderImpl.parse(Unknown Source)
11:20:10 at javax.xml.parsers.DocumentBuilder.parse(Unknown Source)
11:20:10 at de.k.manu4021.yourgs.util.UpdateChecker.updateNeeded(UpdateChecker.java:40)
11:20:10 at de.k.manu4021.yourgs.YourGS.onEnable(YourGS.java:86)
11:20:10 at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:321)
11:20:10 at org.bukkit.plugin.java.JavaPluginLoader.enablePlugin(JavaPluginLoader.java:332)
11:20:10 at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManager.java:404)
11:20:10 at org.bukkit.craftbukkit.v1_8_R3.CraftServer.loadPlugin(CraftServer.java:342)
11:20:10 at org.bukkit.craftbukkit.v1_8_R3.CraftServer.enablePlugins(CraftServer.java:314)
11:20:10 at net.minecraft.server.v1_8_R3.MinecraftServer.s(MinecraftServer.java:406)
11:20:10 at net.minecraft.server.v1_8_R3.MinecraftServer.k(MinecraftServer.java:370)
11:20:10 at net.minecraft.server.v1_8_R3.MinecraftServer.a(MinecraftServer.java:325)
11:20:10 at net.minecraft.server.v1_8_R3.DedicatedServer.init(DedicatedServer.java:235)
11:20:10 at net.minecraft.server.v1_8_R3.MinecraftServer.run(MinecraftServer.java:504)
11:20:10 at java.lang.Thread.run(Unknown Source)
11:20:10 [INFO] [YourGS] Shutting down...
11:20:10 [INFO] [YourGS] Disabling YourGS v1.8
11:20:10 [INFO] [YourGS] Disabling Plugin!
11:20:10 [INFO] [YourGS] This may take a while, unselecting all regions!
11:20:10 [INFO] [YourGS] Plugin Disabled!
Hi, landlord user here. I was searching for a chunk-claim based plugin, the one I'm using is buggy (Kept crashing the server for 3 times, 9 in total) for no apparent reason (something hanging in the db) so even I can't think there's any corruption in the db.... and the dev isn't updating it anymore (since a year I guess) and I need a new plugin to replace it. I've read yours, it doesn't look like LandLord I use, but I'm sure if I suggest landlord-like ideas, could be easier for others to move on, and/or a converter (Landlord To YourGS) because I'm using it since my server turned 2 years, been like 7 months actually with Landlord, but I had to remove it permanently because of server crashing.
I see this plugin is WG dependent, so when someone claims a chunk, does it create a new region or it merge into one? I'd prefer merging them (if the plugin does it) will avoid me finding a dynmap addon (since its using WG so it will render player's claims)
PS: Sorry my english sucks ;)
does it protect the hole world
@Kekshaus
yes
Please can you deactivate the update function?
[01:11:41] [Server thread / INFO]: [YourGS] Enabling YourGS v1.8 [01:11:41] [Server thread / INFO]: [YourGS] Started Enabling ... [01:11:41] [Server thread / INFO]: [YourGS] Checking for updates ... [01:11:41] [Server thread / WARN]: [Autosave World] Plugin YourGS attempted to establish connection http://dev.bukkit.org/bukkit-plugins/yourgs/files.rss in main server thread [01:11:41] [Server thread / WARN]: [Autosave World] Plugin YourGS attempted to establish connection socket: dev.bukkit.org: 80 in main server thread [01:11:41] [Server thread / INFO]: [YourGS] No update found [01:11:41] [Server thread / INFO]: [YourGS] Plugin Enabled!
@KingRick2000
same problem here :/
BUT
/sethome "name" works. /home "name" works to /delhome "name" to
only the "sethome" cmd didnt work. my console shows the same errors as below.
PS: nobody cant use an crafting table on his own GS oO
if you can fix this this would be my future plugin :D Simple, easy to use and all i ever wanted :D
Hi,
Your Plugin works fine, but i cant set an Home with the Essentialsplugin. I tried an other Plugin but that didnt work too. If i delete your PLugin everythings works. HomeFlag is disabled.
Log: [10:51:04 ERROR]: Could not pass event PlayerCommandPreprocessEvent to YourGS v1.8 org.bukkit.event.EventException at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:310) [spigot.jar:git-Spigot-d97e08b-880a532] at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:62) [spigot.jar:git-Spigot-d97e08b-880a532] at org.bukkit.plugin.SimplePluginManager.fireEvent(SimplePluginManager.java:502) [spigot.jar:git-Spigot-d97e08b-880a532] at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:487) [spigot.jar:git-Spigot-d97e08b-880a532] at net.minecraft.server.v1_8_R3.PlayerConnection.handleCommand(PlayerConnection.java:1154) [spigot.jar:git-Spigot-d97e08b-880a532] at net.minecraft.server.v1_8_R3.PlayerConnection.a(PlayerConnection.java:997) [spigot.jar:git-Spigot-d97e08b-880a532] at net.minecraft.server.v1_8_R3.PacketPlayInChat.a(PacketPlayInChat.java:45) [spigot.jar:git-Spigot-d97e08b-880a532] at net.minecraft.server.v1_8_R3.PacketPlayInChat.a(PacketPlayInChat.java:1) [spigot.jar:git-Spigot-d97e08b-880a532] at net.minecraft.server.v1_8_R3.PlayerConnectionUtils$1.run(SourceFile:13) [spigot.jar:git-Spigot-d97e08b-880a532] at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) [?:1.8.0_51] at java.util.concurrent.FutureTask.run(FutureTask.java:266) [?:1.8.0_51] at net.minecraft.server.v1_8_R3.SystemUtils.a(SourceFile:44) [spigot.jar:git-Spigot-d97e08b-880a532] at net.minecraft.server.v1_8_R3.MinecraftServer.B(MinecraftServer.java:714) [spigot.jar:git-Spigot-d97e08b-880a532] at net.minecraft.server.v1_8_R3.DedicatedServer.B(DedicatedServer.java:374) [spigot.jar:git-Spigot-d97e08b-880a532] at net.minecraft.server.v1_8_R3.MinecraftServer.A(MinecraftServer.java:653) [spigot.jar:git-Spigot-d97e08b-880a532] at net.minecraft.server.v1_8_R3.MinecraftServer.run(MinecraftServer.java:556) [spigot.jar:git-Spigot-d97e08b-880a532] at java.lang.Thread.run(Thread.java:745) [?:1.8.0_51] Caused by: java.lang.NullPointerException at de.k.manu4021.yourgs.listener.SpecialCommandListener.onHomeCommandUse(SpecialCommandListener.java:160) [?:?] at sun.reflect.GeneratedMethodAccessor252.invoke(Unknown Source) [?:?] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) [?:1.8.0_51] at java.lang.reflect.Method.invoke(Method.java:497) [?:1.8.0_51] at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:306) [spigot.jar:git-Spigot-d97e08b-880a532] ... 16 more
Yep, and that's the reason. I'm pretty sure that WorldGuard isn't accepting any names with a '.' in it. Shouldn't be the only character which is not allowed. I'm sorry, but I can't fix this
@TiippexxModz
Your worldname is Freebuild2.0?
i get this error http://pastebin.com/SfsA8BRM
The best Plugin - i exactly searched this :)
How can i translate this for my users? (The Info text etc - not only messages :P)
It works fine with Spigot 1.8 - but only, the "Sell function" don't work pretty :)
Thanks again for your fast response!
Ok, I have to master the skill "patience" yet, but I will try ;-)
I understand that the API changes of WG makes trouble, but I really hope you're able to manage it, since your plugin could become for usual worlds what is "PlotMe" for flat-worlds! I have searched for a while for a plugin like YourGS and you're the one and only around. Also I recommend that you install a "donate" button on bukkit and/or even better a Bitcoin adress one can donate maybe the one or other mBTC.
If I can help at your local server weeding out the bugs of a new version, just PM me, as well as if you want to get access to my server, that is online but not yet advertized.
Hey,
thanks for your ideas and your help! This Exception is also thrown because WorldGuards region-api probably has changed. I will try to find out how to fix that, but that I think won't go so fast because maybe i have to contact sk89q and ask him what this problem could cause (google didn't find any hints)
That /gs prints "command not found" is caused by the "CommandSelection-Thing" I've created *programminginfo* I've created an enum for that and i'm looping through all fields of that enum and if the first argument is the same as the command-arg of that enum-value it will execute a method in the class given as an enum-value-field *programminginfoend*
I'm going to give out the /gs help-text in the next version, thank you :)
Thank you very, very much for fixing this error that fast!
Now I'm able to test this great plugin. I've already installed and the error is gone. I'm just testing it out.
Thanks again for your fast response!
Edit: This is EXACTLY the plugin I'm looking for! So I will do my best to give you as much feedback as possible ;-)
1.) /gs gives out "command not found" it should give out the same as /gs help
2.) /gs buy works as expected, but /gs sell gives out the following error at console:
it says the region is sold, but in fact it isn't, so it can be exploited by selling again and again to get the "sell"-price. In fact you can "/gs sell" everywhere and it will give you the sell-price even if there is no region at all.
Hey,
I really don't know, why version 1.2.1 is downloaded, this was the very first file i've uploaded. The features are the same, only the plugin.yml did not change. Maybe WorldGuard changed the exception so i've changed every ProtectedDatabaseException into a default Exception. I don't know if this is going to work, because this error never happened before at my server, but hopefully it will help
When starting the server I get the following error in console:
I'm using: WorldGuard 6.0.0-beta-02 WorldEdit version 5.6.3 Vault v1.4.1-b436
Edit It seems, your versioning is somehow broken, I've downloaded 1.3.6 but the error tells me something from 1.2.1.