PointsOfInterests 1.2.0 loads on Spigot 1.9 without any errors but soon starts throwing errors in the log shortly after. The problem is the "getOnlinePlayers" method it uses.
The only potential workaround to get this working in 1.9 is by using a special source as noted in this thread (CraftBukkit section).
[19:15:21] [Server thread/INFO]: Done (11.635s)! For help, type "help" or "?"
[19:15:23] [Server thread/WARN]: [PointsOfInterests] Task #16 for PointsOfInterests v1.2.0 generated an exception
java.lang.NoSuchMethodError: org.bukkit.Bukkit.getOnlinePlayers()[Lorg/bukkit/entity/Player;
at me.limeth.PointsOfInterests.loopTick(PointsOfInterests.java:88) ~[?:?]
at me.limeth.PointsOfInterests$1.run(PointsOfInterests.java:99) ~[?:?]
at org.bukkit.craftbukkit.v1_9_R1.scheduler.CraftTask.run(CraftTask.java:71) ~[server.jar:git-Spigot-b39373b-73eff0d]
at org.bukkit.craftbukkit.v1_9_R1.scheduler.CraftScheduler.mainThreadHeartbeat(CraftScheduler.java:350) [server.jar:git-Spigot-b39373b-73eff0d]
at net.minecraft.server.v1_9_R1.MinecraftServer.D(MinecraftServer.java:729) [server.jar:git-Spigot-b39373b-73eff0d]
at net.minecraft.server.v1_9_R1.DedicatedServer.D(DedicatedServer.java:400) [server.jar:git-Spigot-b39373b-73eff0d]
at net.minecraft.server.v1_9_R1.MinecraftServer.C(MinecraftServer.java:660) [server.jar:git-Spigot-b39373b-73eff0d]
at net.minecraft.server.v1_9_R1.MinecraftServer.run(MinecraftServer.java:559) [server.jar:git-Spigot-b39373b-73eff0d]
at java.lang.Thread.run(Unknown Source) [?:1.7.0_65]
Thanks for creating and sharing this plugin. I'm very interested in getting this setup for my server. However, after a lot of trial-and-error, I still have not figured out how to reward the play with money from Essentials. I've tried the addCommand for "/eco give <playername> 100" but cannot determine a variable name for the players name. And even if I did, I'm guessing the command would fire off like the user typed it...which means it would fail because the players do not have permission to the eco command. It would be best to run it as if via the console.
How does one go about rewarding a player with cash?
Although not absolutely necessary, it would help in the initial setup and testing if there was a "reload" ability. At the very least, some way to remove players already registered. To test right now, I have to walk into the area to trigger the event, then shutdown the server, edit the config to remove my name, then start the server up again. It would also be nice if the config could remain static and write the user data to a separate file such as "users.yml"
There is a typo on your front page "/setExperience" to "/poi setExperience"
With further testing of version 1.2.0, I noticed a slight issue. The reward command that gives the play an item actually drops the item at their feet rather than adding it to their inventory even though there is available space in the inventory and quickslots. This means somebody following them can pick up their reward! Or never even know it was added/dropped if they do not turn around and look.
Hey Limeth, I just added your plugin to my server, StoryCraft, and its bloody awesome. However, it does seem to have at least one flaw. When I add a reward to a poi, like a diamond, that diamond is a fake diamond and cant be used for anything (like making a pickaxe).
This is by far the Best Plugin I ever saw! You definitely need to continue work on it. :) Awesome work! We use your Plugin on our server. :)
I have a suggestion to make: Leaderboards or something similar to points would be cool. (e.g. for every POI you find, you get 1 point.) - So you can see who found the most POI on your Server.
Sorry for the long delay.
Are you getting any errors? What version of CB are you using? Notice that the commands are called in the console, not from the player, so you can't do for example: "warp Spawn". Using a command "tell %PLAYER% Hi, %PLAYER%" should send the player a message looking like: "[Console -> Limeth] Hi, Limeth".
EDIT: Been almost a week since posting this, Hello? :D
player command do not appear to be working, I have all the permissions set and everything.
ive tried with and without the "/" before the commands...
Even doing this as admin...
It says "Successfully added a command" but does nothing even after a reload.
And i've also noticed a huge slow down with reloading the server after adding this plugin...
I do have a quite a few plugins, so maybe it's not getting along too well with the other ones.
Could you make it so then compasses point to an area if the player has a permission like "poi.compass.(LocationName)" and if they have multiple permissions for locations they can left click the compass to change where it points. :)
The rewards in version 1.0 are items, for example iron or coal.
In version 1.1 (when moderators approve it) you will be able to assign to points of interests rewards like xp and commands (which allow you to give the player money).
Since it takes longer for the staff to approve it than for me to build it, you will have to wait.
Reading through the comments, you're saying it doesn't have economy stuff, or xp rewards , so what exactly is the reward? Or am I missing something? :)
Perfect anyways! Adding commands would still allow us to add economy to players as long as there is some sort of %player parameter that replaces %player with the name of the person entering the poi
I am planning on adding the option to run a command by the console, permissions might be a good idea too, experience sounds good also. I will not be adding economy though.
PointsOfInterests 1.2.0 loads on Spigot 1.9 without any errors but soon starts throwing errors in the log shortly after. The problem is the "getOnlinePlayers" method it uses.
The only potential workaround to get this working in 1.9 is by using a special source as noted in this thread (CraftBukkit section).
PointsOfInterests 1.2.0 works the same on Spigot 1.8.8.
EDIT: Example uses for the addCommand:
Thanks,
LHammonds
PointsOfInterests 1.2.0 works on CraftBukkit 1.7.2-R0.1 with Java 1.7.0_45 (64-bit) and PermissionsEx 1.20.4
@Ryan56k
You probably figured out by now but it is designed to be a 1-time reward by default.
Thanks,
LHammonds
Are the rewards limited to one per player per point or is ther a cool down, or unlimited?
Thanks for creating and sharing this plugin. I'm very interested in getting this setup for my server. However, after a lot of trial-and-error, I still have not figured out how to reward the play with money from Essentials. I've tried the addCommand for "/eco give <playername> 100" but cannot determine a variable name for the players name. And even if I did, I'm guessing the command would fire off like the user typed it...which means it would fail because the players do not have permission to the eco command. It would be best to run it as if via the console.
How does one go about rewarding a player with cash?
Although not absolutely necessary, it would help in the initial setup and testing if there was a "reload" ability. At the very least, some way to remove players already registered. To test right now, I have to walk into the area to trigger the event, then shutdown the server, edit the config to remove my name, then start the server up again. It would also be nice if the config could remain static and write the user data to a separate file such as "users.yml"
There is a typo on your front page "/setExperience" to "/poi setExperience"
With further testing of version 1.2.0, I noticed a slight issue. The reward command that gives the play an item actually drops the item at their feet rather than adding it to their inventory even though there is available space in the inventory and quickslots. This means somebody following them can pick up their reward! Or never even know it was added/dropped if they do not turn around and look.
Thanks,
LHammonds
When it adds a command to console the command could be written using %name% as player, someting like that will be amazing. Nice plugin :D
Hey Limeth, I just added your plugin to my server, StoryCraft, and its bloody awesome. However, it does seem to have at least one flaw. When I add a reward to a poi, like a diamond, that diamond is a fake diamond and cant be used for anything (like making a pickaxe).
This is by far the Best Plugin I ever saw! You definitely need to continue work on it. :) Awesome work! We use your Plugin on our server. :)
I have a suggestion to make: Leaderboards or something similar to points would be cool. (e.g. for every POI you find, you get 1 point.) - So you can see who found the most POI on your Server.
Thanks for your time. :)
@CipherMagi
Sorry for the long delay. Are you getting any errors? What version of CB are you using? Notice that the commands are called in the console, not from the player, so you can't do for example: "warp Spawn". Using a command "tell %PLAYER% Hi, %PLAYER%" should send the player a message looking like: "[Console -> Limeth] Hi, Limeth".
EDIT: Been almost a week since posting this, Hello? :D
player command do not appear to be working, I have all the permissions set and everything. ive tried with and without the "/" before the commands... Even doing this as admin... It says "Successfully added a command" but does nothing even after a reload. And i've also noticed a huge slow down with reloading the server after adding this plugin... I do have a quite a few plugins, so maybe it's not getting along too well with the other ones.
@SuperMinecraftBrosMC
So the compass would point to the points of interests, did I get you right? I may try to do that.
Could you make it so then compasses point to an area if the player has a permission like "poi.compass.(LocationName)" and if they have multiple permissions for locations they can left click the compass to change where it points. :)
@CipherMagi
The rewards in version 1.0 are items, for example iron or coal. In version 1.1 (when moderators approve it) you will be able to assign to points of interests rewards like xp and commands (which allow you to give the player money). Since it takes longer for the staff to approve it than for me to build it, you will have to wait.
Reading through the comments, you're saying it doesn't have economy stuff, or xp rewards , so what exactly is the reward? Or am I missing something? :)
@Faldonboy
As soon as BukkitDev staff approves the plugin, version 1.1 is out, including commands and experience.
@Limeth
Perfect anyways! Adding commands would still allow us to add economy to players as long as there is some sort of %player parameter that replaces %player with the name of the person entering the poi
just what i was looking for! an area namer with a message saying what this area is
@mig4ng
You definetly are right ;D http://forums.bukkit.org/threads/check-point-plugin-request.114008/
@Faldonboy
I am planning on adding the option to run a command by the console, permissions might be a good idea too, experience sounds good also. I will not be adding economy though.
@CipherMagi
That's because I am retarded and I forgot to set it to "Release", thanks for the comment.
Suggestions: Something that I believe would make this infinitely more useful is if you can set it so we can:
1: Run commands upon entry of a poi, configurable to either be run as temp op permissions, player permissions or console
2: Grant permissions upon entry of a poi.
3: Able to grant exp or money upon entry of a poi