> For the complete documentation index, see [llms.txt](https://sonic-rokas.gitbook.io/easybungee/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://sonic-rokas.gitbook.io/easybungee/for-developers/spigotserver.md).

# SpigotServer

## Constructors:

#### new SpigotServer(String ip,String port);

```
ip - server's ip
port - server's port
```

#### new SpigotServer(String name);

```
name - server's name
```

## Methods:

#### getPlayers()

get all players from this server

#### executeCommand(String command)

command - the command you want to execute

execute a command in this server

#### sendToConsole(String message)

message - the message you want to send to the console of this server

send a message to the server's console

#### broadcast(String message)

message - the message you want to broadcast to this server

broadcast a message to this server

#### getWorlds()

get All worlds from this server

#### createWorld(SpigotWorld world)

world - the world you want to create

create a world in this server
