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
// SPDX-License-Identifier: MIT | |
pragma solidity ^0.8.9; | |
import '@openzeppelin/contracts/token/ERC721/ERC721.sol'; | |
import '@openzeppelin/contracts/token/ERC721/IERC721.sol'; | |
import './interfaces/IERC721Soulbound.sol'; | |
/// @title ERC721Soulbound | |
/// @author Gui "Qruz" Rodrigues | |
/// @notice An ERC-721 Soulbound contract that disables any transfers except from and to the null address (0x0) allowing minting and burning of tokens |
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
async function mint() { | |
if (contract) { | |
showNotification({ | |
id: 'MINT', | |
message: 'Minting...', | |
loading: true, | |
color: 'blue', | |
autoClose: false, | |
}); | |
setMinting(true); |
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
package fr.finalsword.api.events.listeners; | |
import com.comphenix.protocol.PacketType; | |
import com.comphenix.protocol.ProtocolLibrary; | |
import com.comphenix.protocol.events.*; | |
import fr.finalsword.api.MYGAPI; | |
import fr.finalsword.api.events.listeners.freeze.FreezeState; | |
import net.minecraft.server.v1_8_R3.PacketPlayOutGameStateChange; | |
import org.bukkit.craftbukkit.v1_8_R3.entity.CraftEntity; | |
import org.bukkit.craftbukkit.v1_8_R3.entity.CraftPlayer; |
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
package fr.finalsword.api.scoreboards; | |
import fr.finalsword.api.scoreboards.utils.ScoreboardTextUtils; | |
import net.minecraft.server.v1_8_R3.*; | |
import org.apache.commons.lang.Validate; | |
import org.bukkit.ChatColor; | |
import org.bukkit.craftbukkit.v1_8_R3.entity.CraftPlayer; | |
import org.bukkit.entity.Player; |