This file contains hidden or 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
| // Example method to create a MiniMessage placeholder that parses PlaceholderAPI placeholders for a player. | |
| // The tag added is of the format "<papi:papi_placeholder>". For example, "<papi:luckperms_prefix>". | |
| // Credit to mbaxter. | |
| /** | |
| * Creates a tag resolver capable of resolving PlaceholderAPI tags for a given player. | |
| * | |
| * @param player the player | |
| * @return the tag resolver | |
| */ |
This file contains hidden or 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 is part of adventure-webui, licensed under the MIT License. | |
| * | |
| * Copyright (c) 2021 KyoriPowered | |
| * | |
| * Permission is hereby granted, free of charge, to any person obtaining a copy | |
| * of this software and associated documentation files (the "Software"), to deal | |
| * in the Software without restriction, including without limitation the rights | |
| * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | |
| * copies of the Software, and to permit persons to whom the Software is |
This file contains hidden or 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
| <?php | |
| error_reporting(E_ALL); | |
| ini_set('display_errors', 1); | |
| ini_set('allow_url_fopen', 1); | |
| include 'resources/php/pastebin.php'; | |
| if(empty($_GET["p"]) == false) { |
This file contains hidden or 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
| List<String> list = getConfig().getStringList("Plague.Spawns.Red"); | |
| String randomString = list.get(new Random().nextInt(list.size()); | |
| String[] coords = randomString.split(","); | |
| player.teleport(new Location(Bukkit.getWorld(config.getString("Plague.Spawns.World"), coords[0], coords[1], coords[2])); |