Back to Plugins
Essentials [26.1.2] icon

Essentials [26.1.2]

Active tab
Overview
Latest version
Not specified
Minecraft support
0 versions
Topics synced
0
Claim this plugin

This plugin was imported from Spiget and is currently unclaimed.

Live badges: Downloads badge for Essentials [26.1.2] Spigot Downloads badge for Essentials [26.1.2] GitHub Stars badge for Essentials [26.1.2] License badge for Essentials [26.1.2] How to embed →

Plugin Information

Type: Minecraft plugin
Spigot Resource: Open on SpigotMC
Created by: Spiget Importer

Description

JitPack.io Check Repository = https://jitpack.io/#AchyMake/Minecraft-Essentials

    <repositories>
        <repository>
            <id>jitpack.io</id>
            <url>https://jitpack.io</url>
        </repository>
    </repositories>

    <dependencies>
        <dependency>
            <groupId>com.github.AchyMake</groupId>
            <artifactId>Minecraft-Essentials</artifactId>
            <version>LATEST</version>
            <scope>provided</scope>
        </dependency>
    </dependencies>

Example for getting Userdata

package org.example.yourplugin;

import org.achymake.essentials.Essentials;
import org.achymake.essentials.data.Userdata;
import org.bukkit.OfflinePlayer;
import org.bukkit.entity.Player;
import org.bukkit.plugin.java.JavaPlugin;

public final class YourPlugin extends JavaPlugin {
    private static YourPlugin instance;

    @Override
    public void onEnable() {
        instance = this;
    }

    @Override
    public void onDisable() {
    }

    public boolean isPVP(OfflinePlayer offlinePlayer) {
        return getEssentials().getUserdata().isPVP(offlinePlayer);
    }

    public boolean setPVP(OfflinePlayer offlinePlayer, boolean value) {
        return getEssentials().getUserdata().setBoolean(offlinePlayer, "settings.pvp", value);
    }

    public boolean isVanished(OfflinePlayer offlinePlayer) {
        return getEssentials().getUserdata().isVanished(offlinePlayer);
    }

    public void toggleVanish(Player player) {
        getEssentials().getVanishHandler().setVanish(player, !isVanished(player));
    }

    public void setVanished(OfflinePlayer offlinePlayer, boolean value) {
        getEssentials().getVanishHandler().setVanish(offlinePlayer, value);
    }

    public Essentials getEssentials() {
        return Essentials.getInstance();
    }

    public static YourPlugin getInstance() {
        return instance;
    }
}

Minecraft Plugin Badges

Use these badge images in docs, README files, or forum posts.

Badge Guide
Downloads
Downloads badge for Essentials [26.1.2]
![Downloads](https://ezbanners.org/shields/plugins/38ed1423-8494-4426-b228-f72e85f40af4/downloads.png)
Spigot Downloads
Spigot Downloads badge for Essentials [26.1.2]
![Spigot Downloads](https://ezbanners.org/shields/plugins/38ed1423-8494-4426-b228-f72e85f40af4/spigot-downloads.png)
GitHub Stars
GitHub Stars badge for Essentials [26.1.2]
![GitHub Stars](https://ezbanners.org/shields/plugins/38ed1423-8494-4426-b228-f72e85f40af4/github-stars.png)
License
License badge for Essentials [26.1.2]
![License](https://ezbanners.org/shields/plugins/38ed1423-8494-4426-b228-f72e85f40af4/license.png)