Skip to content

Latest commit

 

History

History
40 lines (36 loc) · 1.31 KB

README.md

File metadata and controls

40 lines (36 loc) · 1.31 KB

Essentials GO

Essential commands for Dragonfly.

Ready for:

  • /help - Show server commands and descriptions.
  • /gamemode - Changes the player to a specific game mode.
  • /teleport - Teleport everywhere.
  • /defaultgamemode - Set the default gamemode.
  • /setworldspawn - Sets a worlds' spawn point.
  • /xyz - Show/hide coordinates.
  • /op - Give op permissions to a player.
  • /deop - Take op permissions from a player.
  • /stop - Stop the server from in-game.
  • /time - Changes or queries the worlds game time.

Usage

Get the package

go get -u github.com/xerenahmed/essentialsgo

Import package

import "github.com/xerenahmed/essentialsgo"

Register Commands

essentialsgo.RegisterCommands(server) // the server is *dragonfly.Server{}

Exclude Commands

essentialsgo.RegisterCommandsWithout(server, []string{"stop", "defaultgamemode"}) // All commands will be loaded, except "stop" and "defaultgamemode"

Lastly

If you want to support the project, you can give this project a star.
Please report issues or errors in the Issues tab.

Simple Console Command Sender

essentialsgo.LoadConsole()