intellectualsites / plotsquared Goto Github PK
View Code? Open in Web Editor NEWPlotSquared - Reinventing the plotworld
License: GNU General Public License v3.0
PlotSquared - Reinventing the plotworld
License: GNU General Public License v3.0
To call a block update:
if (PlotHelper.canSetFast) {
PlotHelper.update(plr);
}
Here is the stacktrace
[17:31:45 INFO]: Empire92 issued server command: /plot set wall 321
[17:31:45 ERROR]: null
org.bukkit.command.CommandException: Unhandled exception executing command 'plot' in plugin PlotSquared v2.2.1
at org.bukkit.command.PluginCommand.execute(PluginCommand.java:46) ~[spigot.jar:git-Bukkit-1.7.9-R0.2-16-g37c7969-b3105jnks]
at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:180) ~[spigot.jar:git-Bukkit-1.7.9-R0.2-16-g37c7969-b3105jnks]
at org.bukkit.craftbukkit.v1_7_R4.CraftServer.dispatchCommand(CraftServer.java:740) ~[spigot.jar:git-Bukkit-1.7.9-R0.2-16-g37c7969-b3105jnks]
at net.minecraft.server.v1_7_R4.PlayerConnection.handleCommand(PlayerConnection.java:957) [spigot.jar:git-Bukkit-1.7.9-R0.2-16-g37c7969-b3105jnks]
at net.minecraft.server.v1_7_R4.PlayerConnection.a(PlayerConnection.java:818) [spigot.jar:git-Bukkit-1.7.9-R0.2-16-g37c7969-b3105jnks]
at net.minecraft.server.v1_7_R4.PacketPlayInChat.a(PacketPlayInChat.java:28) [spigot.jar:git-Bukkit-1.7.9-R0.2-16-g37c7969-b3105jnks]
at net.minecraft.server.v1_7_R4.PacketPlayInChat.handle(PacketPlayInChat.java:47) [spigot.jar:git-Bukkit-1.7.9-R0.2-16-g37c7969-b3105jnks]
at net.minecraft.server.v1_7_R4.NetworkManager.a(NetworkManager.java:157) [spigot.jar:git-Bukkit-1.7.9-R0.2-16-g37c7969-b3105jnks]
at net.minecraft.server.v1_7_R4.ServerConnection.c(SourceFile:134) [spigot.jar:git-Bukkit-1.7.9-R0.2-16-g37c7969-b3105jnks]
at net.minecraft.server.v1_7_R4.MinecraftServer.v(MinecraftServer.java:667) [spigot.jar:git-Bukkit-1.7.9-R0.2-16-g37c7969-b3105jnks]
at net.minecraft.server.v1_7_R4.DedicatedServer.v(DedicatedServer.java:258) [spigot.jar:git-Bukkit-1.7.9-R0.2-16-g37c7969-b3105jnks]
at net.minecraft.server.v1_7_R4.MinecraftServer.u(MinecraftServer.java:558) [spigot.jar:git-Bukkit-1.7.9-R0.2-16-g37c7969-b3105jnks]
at net.minecraft.server.v1_7_R4.MinecraftServer.run(MinecraftServer.java:469) [spigot.jar:git-Bukkit-1.7.9-R0.2-16-g37c7969-b3105jnks]
at net.minecraft.server.v1_7_R4.ThreadServerApplication.run(SourceFile:628) [spigot.jar:git-Bukkit-1.7.9-R0.2-16-g37c7969-b3105jnks]
Caused by: java.lang.NullPointerException: Name is null
at java.lang.Enum.valueOf(Unknown Source) ~[?:1.7.0_51]
at org.bukkit.Material.valueOf(Material.java:64) ~[spigot.jar:git-Bukkit-1.7.9-R0.2-16-g37c7969-b3105jnks]
at com.intellectualcrafters.plot.commands.Set.getMaterial(Set.java:450) ~[?:?]
at com.intellectualcrafters.plot.commands.Set.execute(Set.java:265) ~[?:?]
at com.intellectualcrafters.plot.commands.MainCommand.onCommand(MainCommand.java:123) ~[?:?]
at org.bukkit.command.PluginCommand.execute(PluginCommand.java:44) ~[spigot.jar:git-Bukkit-1.7.9-R0.2-16-g37c7969-b3105jnks]
... 13 more
Error occurred while enabling PlotSquared v2.3.3 (Is it up to date?)
java.lang.NullPointerException
at com.intellectualcrafters.plot.config.C.s(C.java:469) ~[?:?]
at com.intellectualcrafters.plot.PlotMain.onEnable(PlotMain.java:1391) ~
I think you (Citymonstret) mentioned that brandon was going to do this.
@BrandonRelph
[20:42:39] [Server thread/ERROR]: Encountered an unexpected exception
net.minecraft.server.v1_7_R3.ReportedException: Exception ticking world entities
at net.minecraft.server.v1_7_R3.MinecraftServer.v(MinecraftServer.java:714) ~[spigot-1.7.9-R0.3.jar:git-Spigot-1543]
at net.minecraft.server.v1_7_R3.DedicatedServer.v(DedicatedServer.java:284) ~[spigot-1.7.9-R0.3.jar:git-Spigot-1543]
at net.minecraft.server.v1_7_R3.MinecraftServer.u(MinecraftServer.java:584) ~[spigot-1.7.9-R0.3.jar:git-Spigot-1543]
at net.minecraft.server.v1_7_R3.MinecraftServer.run(MinecraftServer.java:490) [spigot-1.7.9-R0.3.jar:git-Spigot-1543]
at net.minecraft.server.v1_7_R3.ThreadServerApplication.run(SourceFile:628) [spigot-1.7.9-R0.3.jar:git-Spigot-1543]
Caused by: java.util.NoSuchElementException
at org.bukkit.craftbukkit.v1_7_R3.util.UnsafeList$Itr.next(UnsafeList.java:247) ~[spigot-1.7.9-R0.3.jar:git-Spigot-1543]
at org.spigotmc.ActivationRange.activateChunkEntities(ActivationRange.java:165) ~[spigot-1.7.9-R0.3.jar:git-Spigot-1543]
at org.spigotmc.ActivationRange.activateEntities(ActivationRange.java:148) ~[spigot-1.7.9-R0.3.jar:git-Spigot-1543]
at net.minecraft.server.v1_7_R3.World.tickEntities(World.java:1423) ~[spigot-1.7.9-R0.3.jar:git-Spigot-1543]
at net.minecraft.server.v1_7_R3.WorldServer.tickEntities(WorldServer.java:516) ~[spigot-1.7.9-R0.3.jar:git-Spigot-1543]
at net.minecraft.server.v1_7_R3.MinecraftServer.v(MinecraftServer.java:703) ~[spigot-1.7.9-R0.3.jar:git-Spigot-1543]
... 4 more
[20:42:39] [Server thread/ERROR]: Cause of unexpected exception was
java.util.NoSuchElementException
at org.bukkit.craftbukkit.v1_7_R3.util.UnsafeList$Itr.next(UnsafeList.java:247) ~[spigot-1.7.9-R0.3.jar:git-Spigot-1543]
at org.spigotmc.ActivationRange.activateChunkEntities(ActivationRange.java:165) ~[spigot-1.7.9-R0.3.jar:git-Spigot-1543]
at org.spigotmc.ActivationRange.activateEntities(ActivationRange.java:148) ~[spigot-1.7.9-R0.3.jar:git-Spigot-1543]
at net.minecraft.server.v1_7_R3.World.tickEntities(World.java:1423) ~[spigot-1.7.9-R0.3.jar:git-Spigot-1543]
at net.minecraft.server.v1_7_R3.WorldServer.tickEntities(WorldServer.java:516) ~[spigot-1.7.9-R0.3.jar:git-Spigot-1543]
at net.minecraft.server.v1_7_R3.MinecraftServer.v(MinecraftServer.java:703) ~[spigot-1.7.9-R0.3.jar:git-Spigot-1543]
at net.minecraft.server.v1_7_R3.DedicatedServer.v(DedicatedServer.java:284) ~[spigot-1.7.9-R0.3.jar:git-Spigot-1543]
at net.minecraft.server.v1_7_R3.MinecraftServer.u(MinecraftServer.java:584) ~[spigot-1.7.9-R0.3.jar:git-Spigot-1543]
at net.minecraft.server.v1_7_R3.MinecraftServer.run(MinecraftServer.java:490) [spigot-1.7.9-R0.3.jar:git-Spigot-1543]
at net.minecraft.server.v1_7_R3.ThreadServerApplication.run(SourceFile:628) [spigot-1.7.9-R0.3.jar:git-Spigot-1543]
If you can add a menu GUI to click a player head and you would teleport to his or her plot.
Related plugins:
Seems PlotSquared disables fire spread and you can't use a lighter unless you have plots.admin or OP. It even disabled fire spread and lighter even if it isn't a plot world. A simple opinion to be able to configure both of these opinions and not check for either when the world is not a plot world.
Undo plot clearing up to 20s after you accidentally cleared you plot
OR
Add a confirm command for plot clearing (config option)
(Please comment to let us know your preference)
This is kind of a big idea (or several). The main concept is to have a system of alliance,war etc with people having their plots join a nation or group of other player's plots.
This is mostly a survival oriented idea, and as such a natural world generator would be required.
So what would you get from having your plot being part of a nation?
Economy system:
Nation hierarchy:
Nation powers:
War system:
We would want to have something fair which makes it difficult to actually take over someone's plot, but also not impossible even if they are offline.
BARBARIANS:
We also don't want an entire nation to suddenly fall overnight while some players have been offline. That wouldn't be any fun.
Economy based war system:
PVP system:
Self balancing war system:
We don't want a runaway effect in which a nation that is ahead, continuously becomes more and more powerful than it's enemies. Some mechanics need to be in place to make small nation competitive against stronger ones.
Intra-nation contracts:
Money generation:
========== Would you be able to help me make this at some point Citymonstret?
TL;DR - sorta like towny mixed with factions but scales better, and will have a better designed war system.
Not really an issue, but the plugin could end up using a decent amount of memory if there are a lot of plots.
viewable using /plot info
EntityCreature creature = ((CraftEntity) entity).getHandle();
PathEntity path = entity.world.findPath(getEntity(), creature, getPathfindingRadius(), true, false, false, true);
creature.setPathEntity(path);
double speed = 0.4D;
creature.getNavigation().a(path, speed);
Entity pathfinding would ideally prevent mobs from leaving the plot.
*Several reports of SQLite not functioning properly
TODO: test SQLite with >5000 plots
QUOTE:
Is it possible to make a converter for those of us trying to switch over from plot manager?
Console command to generate plots between two locations. The rest of the world is generated normally.
(Will require major restructuring)
This would be very useful for build competitions where you did not want the entire world to be turned into a plot world.
Per plot mob (friendly and hostile configurable) cap with permissions to be able to have more.
Plot auto algorithm only claims along x > 0, y=0
For some reasons all my old plots from plotme are claimed by UUIDs so players can't do anything on their old plot now.
Also keep getting this error http://i.yive.me/r23h9Z6
Edit2: turns out just removing lilypad fixed it, hopefully it's fine after re-adding it.
To show which is a claim plot on sight. And if you ever get to economy plot for selling and another setting to change what the slab look like for sale plot
Add DB table to house comments.
Not a high priority, as there is SQLite already.
Weaknesses of flat file:
Strengths:
Im not sure if plot clear or plot delete cause lag but i think it might be useful to have async like
www.spigotmc.org/resources/asyncworldedit.327/
Also useful for pasting and saving in schematics /plot schematic
No Player Can build without the Permissions '*' and plots.admin
Claim a plot and generate natural (or close to natural) terrain on it.
/plot generatenatural
Generate ores for survival mode plots
Search for a plot, and view it's info:
Uses a MySQL hook (most servers wanting a web interface would use MySQL anyway)
side note: Some arguments aren't being replaced: (%max)
http://gyazo.com/a4ac07ca49e1a7f00c0e33b58ddda5c4 <- can't replicate
[11:33:58 INFO]: [Plot] Detected world load for 'Plots'
[11:33:58 INFO]: [Plot] - generator: com.intellectualcrafters.plot.generator.WorldGenerator
[11:33:58 INFO]: [Plot] - plotworld: com.intellectualcrafters.plot.generator.DefaultPlotWorld
[11:33:58 INFO]: [Plot] - manager: com.intellectualcrafters.plot.generator.DefaultPlotManager
[11:33:58 ERROR]: [PlotSquared] Could not set generator for default world 'Plots': Plugin 'PlotSquared v2.3.0
java.lang.NullPointerException
at com.intellectualcrafters.plot.PlotMain.addPlotWorld(PlotMain.java:1240) ~[?:?]
at com.intellectualcrafters.plot.PlotMain.loadWorld(PlotMain.java:973) ~[?:?]
at com.intellectualcrafters.plot.PlotGenerator.<init>(PlotGenerator.java:29) ~[?:?]
at com.intellectualcrafters.plot.generator.WorldGenerator.<init>(WorldGenerator.java:179) ~[?:?]
at com.intellectualcrafters.plot.PlotMain.getDefaultWorldGenerator(PlotMain.java:1269) ~[?:?]
at org.bukkit.craftbukkit.v1_7_R4.CraftServer.getGenerator(CraftServer.java:1335) [craftbukkit.jar:git-Spigot-1.7.9-R0.2-207-g03373bb]
at org.bukkit.craftbukkit.v1_7_R4.CraftServer.createWorld(CraftServer.java:969) [craftbukkit.jar:git-Spigot-1.7.9-R0.2-207-g03373bb]
at org.bukkit.Bukkit.createWorld(Bukkit.java:250) [craftbukkit.jar:git-Spigot-1.7.9-R0.2-207-g03373bb]
at multiworld.data.WorldManager.loadWorld(WorldManager.java:347) [multiworld.jar:?]
at multiworld.data.WorldManager.loadWorlds(WorldManager.java:658) [multiworld.jar:?]
at multiworld.data.DataHandler.load(DataHandler.java:242) [multiworld.jar:?]
at multiworld.data.DataHandler.<init>(DataHandler.java:61) [multiworld.jar:?]
at multiworld.MultiWorldPlugin.onEnable(MultiWorldPlugin.java:256) [multiworld.jar:?]
at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:316) [craftbukkit.jar:git-Spigot-1.7.9-R0.2-207-g03373bb]
at org.bukkit.plugin.java.JavaPluginLoader.enablePlugin(JavaPluginLoader.java:332) [craftbukkit.jar:git-Spigot-1.7.9-R0.2-207-g03373bb]
at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManager.java:412) [craftbukkit.jar:git-Spigot-1.7.9-R0.2-207-g03373bb]
at org.bukkit.craftbukkit.v1_7_R4.CraftServer.loadPlugin(CraftServer.java:476) [craftbukkit.jar:git-Spigot-1.7.9-R0.2-207-g03373bb]
at org.bukkit.craftbukkit.v1_7_R4.CraftServer.enablePlugins(CraftServer.java:394) [craftbukkit.jar:git-Spigot-1.7.9-R0.2-207-g03373bb]
at net.minecraft.server.v1_7_R4.MinecraftServer.n(MinecraftServer.java:360) [craftbukkit.jar:git-Spigot-1.7.9-R0.2-207-g03373bb]
at net.minecraft.server.v1_7_R4.MinecraftServer.g(MinecraftServer.java:334) [craftbukkit.jar:git-Spigot-1.7.9-R0.2-207-g03373bb]
at net.minecraft.server.v1_7_R4.MinecraftServer.a(MinecraftServer.java:290) [craftbukkit.jar:git-Spigot-1.7.9-R0.2-207-g03373bb]
at net.minecraft.server.v1_7_R4.DedicatedServer.init(DedicatedServer.java:210) [craftbukkit.jar:git-Spigot-1.7.9-R0.2-207-g03373bb]
at net.minecraft.server.v1_7_R4.MinecraftServer.run(MinecraftServer.java:458) [craftbukkit.jar:git-Spigot-1.7.9-R0.2-207-g03373bb]
at net.minecraft.server.v1_7_R4.ThreadServerApplication.run(SourceFile:628) [craftbukkit.jar:git-Spigot-1.7.9-R0.2-207-g03373bb]
setting wall / wall_filling when the road width is 0
You shouldn't be able to use the setwall command if the road width is 0 in the config
Renting plots for an amount of time
Renting helper/trusted status of a plot
Selling helper/trusted status for a plot
Plot tax
When I create world with these commands:
/plot setup plots PlotSquared
/mv create plots normal -g PlotSquared
It create world but its normal survival world.
(This is possible using the API, so we may do this as an addon rather than hardcode it into the plugin)
Break apart a plot into smaller pieces which users can have permission for.
E.g.
prison cell plot is broken into smaller pieces
Marketplace plot is broken into multiple shops
[07:35:08 INFO]: Empire92 issued server command: /plot h2
[07:35:08 ERROR]: null
org.bukkit.command.CommandException: Unhandled exception executing command 'plot' in plugin PlotSquared v2.2.1
at org.bukkit.command.PluginCommand.execute(PluginCommand.java:46) ~[spigot.jar:git-Bukkit-1.7.9-R0.2-16-g37c7969-b3105jnks]
at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:180) ~[spigot.jar:git-Bukkit-1.7.9-R0.2-16-g37c7969-b3105jnks]
at org.bukkit.craftbukkit.v1_7_R4.CraftServer.dispatchCommand(CraftServer.java:740) ~[spigot.jar:git-Bukkit-1.7.9-R0.2-16-g37c7969-b3105jnks]
at net.minecraft.server.v1_7_R4.PlayerConnection.handleCommand(PlayerConnection.java:957) [spigot.jar:git-Bukkit-1.7.9-R0.2-16-g37c7969-b3105jnks]
at net.minecraft.server.v1_7_R4.PlayerConnection.a(PlayerConnection.java:818) [spigot.jar:git-Bukkit-1.7.9-R0.2-16-g37c7969-b3105jnks]
at net.minecraft.server.v1_7_R4.PacketPlayInChat.a(PacketPlayInChat.java:28) [spigot.jar:git-Bukkit-1.7.9-R0.2-16-g37c7969-b3105jnks]
at net.minecraft.server.v1_7_R4.PacketPlayInChat.handle(PacketPlayInChat.java:47) [spigot.jar:git-Bukkit-1.7.9-R0.2-16-g37c7969-b3105jnks]
at net.minecraft.server.v1_7_R4.NetworkManager.a(NetworkManager.java:157) [spigot.jar:git-Bukkit-1.7.9-R0.2-16-g37c7969-b3105jnks]
at net.minecraft.server.v1_7_R4.ServerConnection.c(SourceFile:134) [spigot.jar:git-Bukkit-1.7.9-R0.2-16-g37c7969-b3105jnks]
at net.minecraft.server.v1_7_R4.MinecraftServer.v(MinecraftServer.java:667) [spigot.jar:git-Bukkit-1.7.9-R0.2-16-g37c7969-b3105jnks]
at net.minecraft.server.v1_7_R4.DedicatedServer.v(DedicatedServer.java:258) [spigot.jar:git-Bukkit-1.7.9-R0.2-16-g37c7969-b3105jnks]
at net.minecraft.server.v1_7_R4.MinecraftServer.u(MinecraftServer.java:558) [spigot.jar:git-Bukkit-1.7.9-R0.2-16-g37c7969-b3105jnks]
at net.minecraft.server.v1_7_R4.MinecraftServer.run(MinecraftServer.java:469) [spigot.jar:git-Bukkit-1.7.9-R0.2-16-g37c7969-b3105jnks]
at net.minecraft.server.v1_7_R4.ThreadServerApplication.run(SourceFile:628) [spigot.jar:git-Bukkit-1.7.9-R0.2-16-g37c7969-b3105jnks]
Caused by: java.lang.NullPointerException: replacement
at java.util.regex.Matcher.replaceFirst(Unknown Source) ~[?:1.7.0_51]
at java.lang.String.replaceFirst(Unknown Source) ~[?:1.7.0_51]
at com.intellectualcrafters.plot.PlayerFunctions.sendMessage(PlayerFunctions.java:289) ~[?:?]
at com.intellectualcrafters.plot.commands.MainCommand.onCommand(MainCommand.java:142) ~[?:?]
at org.bukkit.command.PluginCommand.execute(PluginCommand.java:44) ~[spigot.jar:git-Bukkit-1.7.9-R0.2-16-g37c7969-b3105jnks]
... 13 more
We probably shouldn't even have the command usable by players, as it can lag quite a lot, and they won't be able to see much but the last few plots.
Either than or we should make it use pages...
This is a safety measure bukkit has in place so you don't unload ALL of your worlds.
(You currently need to switch the generator for the default world while the server is stopped)
TODO: Figure out either how to disable this precaution, or figure out how to switch the generator in a loaded world.
pistons allow pushing blocks outside your plot if ticking "fast enough"
(This is an issue with bukkit itself, but there might be a hacky solution to this)
Function to add a comment right above a specific config node in a YAMLConfiguration file:
Copy/Paste + Swap does not copy BlockStates (sign/chest are important ones)
Set plot home anywhere in the plot, rather than just two locations.
Prison system includes
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.