Speedgot
[API] MiniMapGUI
-----
An easy-to-use library that implements a GUI interface within offhand maps.
Download Now
29.8 KB .jar
Overview
Updates (
--
)
Reviews (
---
)
Version History
Discussion
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!
Spoiler:
Example Usage
Code (Java):
[
/
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
]
View on SpigotMC
Resource Information
Author:
----------
Total Downloads:
440
First Release:
Feb 4, 2022
Last Update:
Jun 1, 2022
Category:
---------------
All-Time Rating:
0 ratings
Version
-----
Released:
--------------------
Downloads:
------
Version Rating:
----------------------
--
ratings
Ask Questions / Get Support