Skip to content

Instantly share code, notes, and snippets.

View Fep310's full-sized avatar
🏠
Working from home

Felipe Fep310

🏠
Working from home
  • Brazil
  • 01:46 (UTC -03:00)
  • X @fep310
View GitHub Profile
@adammyhre
adammyhre / InspectorLock.cs
Last active December 6, 2025 08:14
Lock Inspector Icon and Transform Constrain Proportion Icon in Unity
using System.Reflection;
using UnityEditor;
using UnityEngine;
/// <summary>
/// Toggles the Inspector lock state and the Constrain Proportions lock state.
/// </summary>
public static class LockInspector {
static readonly MethodInfo flipLocked;
static readonly PropertyInfo constrainProportions;
@Redoishi
Redoishi / AMyCommand.java
Last active July 21, 2022 19:22
Create a minecraft command without plugin.yml
package your.package;
import org.bukkit.Bukkit;
import org.bukkit.ChatColor;
import org.bukkit.command.*;
import org.bukkit.plugin.java.JavaPlugin;
import java.lang.reflect.Field;
import java.util.ArrayList;
import java.util.Arrays;