I'm looking for a specific plug in and I'm uncertain whether it exists or not-and if it doesn't, is there anyone out there who would be able to make it, and how much it would cost.
Basically it's a teleporting plug in, imagine this scenario;
Player 1 wants to get to a mountain city that Player 2 is at, so Player 2 says "just type /tp mountaincity", Player 1 tries it but it says they do not have permission to use the command. After walking around, Player 1 finds the mountain city and a message appears in the chat "Teleport 'mountaincity' now available". Or something along those lines.
Basically the teleport would unlock when you got to certain coordinates on the map, the message would pop up and the player would now have access to that command.
So basically you want a plugin that allows you to set a sort of boundary and have it mark the coordinated but they cannot use it until they enter the are than the plugin adds the permission say your using pex/gm along with essentials warps when they walk into the region they get the permission added permanantly so they can forever more use that warp? if so i might be able to code this but no promises (it will be free of course if i can make it as long as i can post it publicly)
So basically you want a plugin that allows you to set a sort of boundary and have it mark the coordinated but they cannot use it until they enter the are than the plugin adds the permission say your using pex/gm along with essentials warps when they walk into the region they get the permission added permanantly so they can forever more use that warp? if so i might be able to code this but no promises (it will be free of course if i can make it as long as i can post it publicly)
Yes, that's exactly what I wan't, it would of course have to notify them via chat that the teleport is available.
Feel free to post it, so long as it exists I'd be more then happy!
just a small update i might have this done in like a week or so but im ending after like an hour of work on it i got the basic (if the player enters a specific region set by you then add permission: (permission)) im just having trouble making it to where it sets a permission for different areas that you make and then after i solve that issue im going to add the command to grab a wand and mark the area then ill test run it and debug it
Quote from x_Jake_s»just a small update i might have this done in like a week or so but im ending after like an hour of work on it i got the basic (if the player enters a specific region set by you then add permission: (permission)) im just having trouble making it to where it sets a permission for different areas that you make and then after i solve that issue im going to add the command to grab a wand and mark the area then ill test run it and debug it
Oh wow, that soon? That's amazing! I don't know my way around code, so it all seems so difficult to me, so goodluck!
Well actually now im depressed because i looked up how to do basic things with code like i always do to refresh my memory and strenghthen my coding but i type in Regional Discover Warps help Java Coding and this pops up... http://dev.bukkit.org/bukkit-plugins/discoverwarps/ total ragequit! this seems to do most of the major functions you need so if you need someone to help test it pm me.
Heres what i had done ima post it here just to show that i actually did start it lol but that plugin above should do great for you if not ill return back to working on it.
@EventHandler
public void onPlayerMove(PlayerMoveEvent event) {
Player p = event.getPlayer();
UUID uuid = p.getUniqueId();
if (p.hasPermission("regionwarp.use")) {
Location l = event.getTo();
Location loc = p.getLocation();
String getQuery = "SELECT * FROM Regionwarps WHERE world = '" + w + "' AND region = '" + region + "'";
rsPlate = statement.executeQuery(getQuery);
if ((rsPlate.next()) && ((!this.regionPlayers.containsKey(uuid)) || (!((List)this.regionPlayers.get(uuid)).contains(region))))
{
List theList;
List theList;
if (this.regionPlayers.containsKey(uuid))
theList = (List)this.regionPlayers.get(uuid);
else {
theList = new ArrayList();
}
theList.add(region);
this.regionPlayers.put(uuid, theList);
boolean enabled = rsPlate.getBoolean("enabled");
if (enabled) {
String id = rsPlate.getString("id");
String warp = rsPlate.getString("name");
String queryDiscover = "";
String queryPlayer = "SELECT * FROM players WHERE uuid = '" + uuid.toString() + "'";
rsPlayer = statement.executeQuery(queryPlayer);
if (rsPlayer.next()) {
firstplate = false;
String data = rsPlayer.getString("visited");
String[] visited = data.split(",");
if (Arrays.asList(visited).contains(id)) {
discovered = true;
}
if (!discovered) {
queryDiscover = "UPDATE players SET visited = '" + data + "," + id + "', regions = '" + rsPlayer.getString("regions") + "," + region + "' WHERE uuid = '" + uuid + "'";
}
}
if ((!discovered) && (firstplate == true)) {
queryDiscover = "INSERT INTO players (uuid, visited, regions) VALUES ('" + uuid + "','" + id + "','" + region + "')";
}
Well actually now im depressed because i looked up how to do basic things with code like i always do to refresh my memory and strenghthen my coding but i type in Regional Discover Warps help Java Coding and this pops up... http://dev.bukkit.org/bukkit-plugins/discoverwarps/ total ragequit! this seems to do most of the major functions you need so if you need someone to help test it pm me.
Oh wow you found one!
That's pretty neat, and it could certainly work-though if you'd like to try and do it based on coordinates rather then pressure plates then by all means! If yours is better then I can use that, and either way you could post it online
(By "better" I mean; in chat notification, teleports with /tp (locationname) [rather then /dw tp (locationname)], discovery based on coordinates, not pressure plates) -That would be PERFECT, though, as I said I could still use the pressure plates one.
well with WorldGuard you would make a region and of course add a like /region flag <name> entry "message" and exit message and it discovers the region you set aslong as the pressure plate is inside the region it hooks to it, and i could probably rewrite the plugin he has to have your specific commands but id have to get his permission first as he would have to send me his plugin.yml so i can see the plugins and permissions instead of searching myself
well with WorldGuard you would make a region and of course add a like /region flag <name> entry "message" and exit message and it discovers the region you set aslong as the pressure plate is inside the region it hooks to it, and i could probably rewrite the plugin he has to have your specific commands but id have to get his permission first as he would have to send me his plugin.yml so i can see the plugins and permissions instead of searching myself
Honestly, whatever works best for you, I don't know how it works, so long as it does XD
Hey I've looked at that other plugin "discoverwarps" but i still persevered with mine and i'm quite pleased with it, if you would like to check it out its on BukkitDev, http://dev.bukkit.org/bukkit-plugins/uwarp/
Looks perfect! Is the player notified when they unlock the warp?
I'll test this out for sure
Basically it's a teleporting plug in, imagine this scenario;
Player 1 wants to get to a mountain city that Player 2 is at, so Player 2 says "just type /tp mountaincity", Player 1 tries it but it says they do not have permission to use the command. After walking around, Player 1 finds the mountain city and a message appears in the chat "Teleport 'mountaincity' now available". Or something along those lines.
Basically the teleport would unlock when you got to certain coordinates on the map, the message would pop up and the player would now have access to that command.
Yes, that's exactly what I wan't, it would of course have to notify them via chat that the teleport is available.
Feel free to post it, so long as it exists I'd be more then happy!
Awesome! c: thank you!
Oh wow, that soon? That's amazing! I don't know my way around code, so it all seems so difficult to me, so goodluck!
Oh wow you found one!
That's pretty neat, and it could certainly work-though if you'd like to try and do it based on coordinates rather then pressure plates then by all means! If yours is better then I can use that, and either way you could post it online
(By "better" I mean; in chat notification, teleports with /tp (locationname) [rather then /dw tp (locationname)], discovery based on coordinates, not pressure plates) -That would be PERFECT, though, as I said I could still use the pressure plates one.
Honestly, whatever works best for you, I don't know how it works, so long as it does XD
Looks perfect! Is the player notified when they unlock the warp?
I'll test this out for sure
WOW! A million thanks for putting it together, and so fast too-this will be very useful for me, and likely many other people too!