need help with creating a plugin

Discussion in 'Plugin Development' started by roadturtle, Mar 16, 2021.

Thread Status:
Not open for further replies.
  1. Offline

    roadturtle

    I am currently working on a plugin for a friends minecraft server, essentially i want to be able to use beacons to teleport people to other beacons. I have ui and detecting sneaking on beacons to open the ui, but i need to somehow save the data for beacons and their location to be able to make configurable waypoints essentially. I would also like to make it world specific and be able to make as many waypoints as we would like and not have a few hardcoded ones. Would anyone know how I would go about doing this?
     
  2. Online

    timtower Administrator Administrator Moderator

  3. Offline

    roadturtle

    i would like to essentially set beacons as specific names and places and be able to reconfigure them and save their data and stuff so you open the ui and you can choose which beacon you want to be taken to. But i dont know how i would go about saving the data and/or giving the ability to make infinite points(beacons) in the world that you can set up to be able to be teleported to.
     
  4. Online

    timtower Administrator Administrator Moderator

    @roadturtle What data do you need for that then? You need a Location for the beacon itself, what else do you want to save?
     
  5. Offline

    roadturtle

    i would also need to store the beacons name and possibly some lore for what place it is, i would like to be able to set that stuff in game inside the ui and be configureable
     
  6. Offline

    davidclue

    Can't you just serialize the data for beacon number, world, x, y, and z. To make unlimited beacons you will need to make multi-page support for your GUI and just add the beacon to a list then grab the list from where you save it and deserialize the data.
     
  7. Offline

    roadturtle

    yeah i could do that i would just need some help figuring it out because i haven’t done much in the way of that with java and haven’t been using the bukkit library for too long


    Sent from my iPhone using Tapatalk
     
  8. Offline

    davidclue

    A resource here
     
  9. Offline

    roadturtle

    thanks ill look into it to see if i can figure it out
     
Thread Status:
Not open for further replies.

Share This Page