[API] MiniMapGUI
1.0.0An easy-to-use library that implements a GUI interface within offhand maps.
Get support here: https://discord.gg/G8BDgqsuyw
MiniMapGUI
An easy-to-use Spigot library that implements a GUI interface within offhand maps.
Maven and Gradle dependencies are available on the GitHub page!
Example Usage
[/SIZE]
public class WarpGUI extends MiniMapGUI {
private final JavaPlugin plugin;
public WarpGUI(JavaPlugin plugin, Player player) {
super(plugin, player);
this.plugin = plugin;
wraparoundStages = false;
}
@Override
public void setup() {
try {
addStage(
0,
SimpleStage.newBuilder()
.wraparoundOptions(true)
.addOption(
new ImageOption(
getPlayer().getWorld(),
new URL("someimgurlink.com/image.png"),
gui -> {
gui.close();
gui.getPlayer().teleport(Bukkit.getWorld("world").getSpawnLocation());
}))
.addOption(
new ImageOption(
getPlayer().getWorld(),
new URL("someimgurlink.com/image2.png"),
gui -> {
gui.close();
gui.getPlayer()
.teleport(Bukkit.getWorld("world_nether").getSpawnLocation());
}))
.build());
} catch (MalformedURLException e) {
e.printStackTrace();
}
}
@Override
public void onLeftClick(boolean isSneaking, boolean isClickingBlock) {
if (getCurrentStage() != null) {
getCurrentStage().nextOption();
render();
}
}
@Override
public void onRightClick(boolean isSneaking, boolean isClickingBlock) {
selectCurrentOption();
}
}
[SIZE=4]Similar projects
Plugin →Let Me Despawn
Improves performance by tweaking mob despawn rules. Say bye to pesky unintentional persistent mobs.
25MSueta
JourneyMap
Real-time map used for mapping in-game or your browser as you explore.
14.7MSueta
Emotecraft
Create your own emotes in Minecraft.
7.5MSueta
Simple Tpa
A simple tpa plugin which sends requests
5.4MSueta
Common Network
Forge and Fabric Unified Networking Solution
3.9MSueta
Set Home
A lightweight plugin for players to set their homes.
3.8MSueta
