Skip to content

JossArchived/UltimateTroll

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

37 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

UltimateTroll

📩 Setup

  1. Download the latest version here
  2. Put the .jar in your plugins folder
  3. And finally, start your server!

📙 Description

Plugin for your Nukkit Server to troll everyone

  • Player Selector:

  • Variety of traps:

⏯ Watch the video

Watch the video

For Developers

🌏 Add as dependency

Maven:

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

<dependency>
    <groupId>com.github.Josscoder</groupId>
    <artifactId>UltimateTroll</artifactId>
    <version>1.0.0</version>
</dependency>

🕳 Add a trap

import cn.nukkit.Player;
import josscoder.ultimatetroll.UltimateTrollPlugin;
import josscoder.ultimatetroll.trap.Trap;

public class CreateTrap {

    public static void main(String[] args) {
        UltimateTrollPlugin.getInstance().getHelper().registerTrap(new Trap() {
            @Override
            public void init() {
                System.out.println("Initialized!");
            }

            @Override
            public String getSimpleName() {
                return "TestTrap";
            }

            @Override
            public void onExecute(Player target) {
                target.sendMessage("Hello");
            }

            @Override
            public void close() {
                System.out.println("Closing...");
            }
        });
    }
}

🕳 Remove a trap

import josscoder.ultimatetroll.UltimateTrollPlugin;

public class RemoveTrap {

    public static void main(String[] args) {
        UltimateTrollPlugin.getInstance().getHelper().deregisterTrap("Burn");
    }
}

🕳 Get a trap

import josscoder.ultimatetroll.UltimateTrollPlugin;

public class GetTrap {

    public static void main(String[] args) {
        UltimateTrollPlugin.getInstance().getHelper().getTrap("Burn")...
        UltimateTrollPlugin.getInstance().getHelper().getTrap("BurnTrap")...
    }
}

📜 LICENSE

This plugin is licensed under the Apache License 2.0 LICENSE, this plugin was completely created by Josscoder (José Luciano Mejia Arias)