-
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
New version 2.7 (added: lunar waypoints, lunar disabled mods)
- Loading branch information
Showing
10 changed files
with
196 additions
and
25 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
package cz.qery.toolkit.lunar; | ||
|
||
import com.lunarclient.bukkitapi.nethandler.client.LCPacketModSettings; | ||
import com.lunarclient.bukkitapi.nethandler.client.LCPacketUpdateWorld; | ||
import com.lunarclient.bukkitapi.nethandler.client.obj.ModSettings; | ||
import com.lunarclient.bukkitapi.nethandler.shared.LCPacketWaypointAdd; | ||
import cz.qery.toolkit.Main; | ||
import cz.qery.toolkit.Tools; | ||
import org.bukkit.Bukkit; | ||
import org.bukkit.entity.Player; | ||
|
||
import java.util.ArrayList; | ||
import java.util.HashMap; | ||
import java.util.List; | ||
|
||
public class Mod { | ||
|
||
static Main plugin = Main.getPlugin(Main.class); | ||
public static LCPacketModSettings mods = null; | ||
|
||
public static void Load() { | ||
ModSettings modSettings = new ModSettings(); | ||
for (String modId : plugin.getConfig().getStringList("lunar.disabled_mods")) { | ||
modSettings.addModSetting(modId, new ModSettings.ModSetting(false, new HashMap<>())); | ||
} | ||
mods = new LCPacketModSettings(modSettings); | ||
} | ||
|
||
public static void Send() { | ||
List<Player> players = new ArrayList<>(Bukkit.getOnlinePlayers()); | ||
for (Player p : players) { | ||
Tools.sendLunarPacket(p, Mod.mods); | ||
} | ||
} | ||
|
||
public static void SendOne(Player p) { | ||
Tools.sendLunarPacket(p, Mod.mods); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters