Skip to content

Instantly share code, notes, and snippets.

View qruz-hq's full-sized avatar
🎯
Focusing

Gui Rodrigues qruz-hq

🎯
Focusing
View GitHub Profile
@qruz-hq
qruz-hq / ERC721Soulbound.sol
Created December 19, 2022 17:55
An extension of the ERC721 interface to allow the creation of authentication gated burnable Soulbound tokens. The type of authentication gives the burn permission to either the Issuer, Owner or both parties.
// 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
@qruz-hq
qruz-hq / mint.js
Created April 24, 2022 21:22
Minting function (FrontEnd)
async function mint() {
if (contract) {
showNotification({
id: 'MINT',
message: 'Minting...',
loading: true,
color: 'blue',
autoClose: false,
});
setMinting(true);
@qruz-hq
qruz-hq / FreezePlayers
Last active July 3, 2016 15:11
Completly freeze players
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;
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;