promotional bannermobile promotional banner

Scripter

Abandoned
Use Lua scripts to control Bukkit, using several Bukkit APIs

What does it do?

Using LuaToBukkit, Bukkit plugins can be written in Lua. They can control many aspects of the server, as well as listen to events. It has 4 script types:

Commands

Directory: plugins/LuaToBukkit/commands

Here the files for commands should be placed. However, when they are placed here, they still have to be registered in, for example, a startup script.

Listeners

Directory: plugins/LuaToBukkit/listeners

All listeners should be placed here. Whenever an event is fired the plugin will only look for event listeners here.

Startup

Directory: plugins/LuaToBukkit/startup

These scripts are automatically run at startup.

Scripts

Directory: plugins/LuaToBukkit/scripts

These scripts can be executed using the `/lua execute` command.

APIs

Server API

Functions

server:banIP(ip)

Bans an IP.

server:unbanIP(ip)

Unbans an IP, the reverse of server.banIP

server:broadcast(message, permission [,color])

Broadcasts a message to all players having sufficient permissons with an optional color.

server:broadcastMessage(message [, color])

Broadcasts a message to all players with an optional color

server:kick(player)

Kicks a player.

server:getOnlinePlayers()

Gets all online player names in a table.

server:sendMessage(player, message)

Sends a message to a specific player

Constants

  • server.IP
  • server.NAME
  • server.MOTD
  • server.MAX_PLAYERS
  • server.VIEW_DISTANCE
  • server.ALLOW_END
  • server.ALLOW_FLIGHT
  • server.ALLOW_NETHER
  • server.AMBIENT_SPAWN_LIMIT
  • server.ANIMAL_SPAWN_LIMIT

The Scripter Team

profile avatar
  • 3
    Projects
  • 5.6K
    Downloads

More from Forge_User_69575579

  • Runner project image

    Runner

    • 5.9K
    • Bukkit Plugins

    A simple remote GUI.

    • 5.9K
    • January 4, 2013
    • Bukkit Plugins
    • +3
  • RandomFireworksSpawner project image

    RandomFireworksSpawner

    • 2.0K
    • Bukkit Plugins

    Spawn Random Fireworks by yourself or by using dispensers!

    • 2.0K
    • December 28, 2012
    • Bukkit Plugins
  • EmptyFood project image

    EmptyFood

    • 3.0K
    • Bukkit Plugins

    Empty your food instantly

    • 3.0K
    • February 1, 2012
    • Bukkit Plugins
  • Runner project image

    Runner

    • 5.9K
    • Bukkit Plugins

    A simple remote GUI.

    • 5.9K
    • January 4, 2013
    • Bukkit Plugins
    • +3
  • RandomFireworksSpawner project image

    RandomFireworksSpawner

    • 2.0K
    • Bukkit Plugins

    Spawn Random Fireworks by yourself or by using dispensers!

    • 2.0K
    • December 28, 2012
    • Bukkit Plugins
  • EmptyFood project image

    EmptyFood

    • 3.0K
    • Bukkit Plugins

    Empty your food instantly

    • 3.0K
    • February 1, 2012
    • Bukkit Plugins