I hereby claim:
- I am mindgamesnl on github.
- I am mindgamesnl (https://keybase.io/mindgamesnl) on keybase.
- I have a public key whose fingerprint is 5029 522A C90F 7789 E39B 4128 CAA7 19CE 52C6 CDC5
To claim this, I am signing this object:
| import org.bukkit.Bukkit; | |
| import org.bukkit.plugin.java.JavaPlugin; | |
| import java.util.function.Consumer; | |
| public class DataWatcher<T> { | |
| private T value; | |
| private int task; | |
| private Feeder<T> dataFeeder; |
| package com.github.jikoo.experience; | |
| import org.bukkit.entity.Player; | |
| /** | |
| * A utility for managing Player experience properly. | |
| * | |
| * @author Jikoo | |
| */ | |
| public class Experience { |
I hereby claim:
To claim this, I am signing this object:
Inventory holders can be used to register own types, handlers and data to a opened GUI for a player.
To start, we need to create our menu class that implemetns InventoryHolder and any other functions we may want. For this example, we are gonna fill the inventory and open it for player, then save the player for later ussage with our handler.
It will look something like this
import org.bukkit.Bukkit;
import org.bukkit.Material;| import java.io.File; | |
| import java.io.FileOutputStream; | |
| import java.io.IOException; | |
| import java.nio.charset.Charset; | |
| import java.nio.file.Files; | |
| import java.util.LinkedHashMap; | |
| import java.util.Map; | |
| public class ConfigFile { |