Skip to content

xerenahmed/EssentialsGO

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

35 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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()

About

Essential commands for Dragonfly

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages