Code Monkey home page Code Monkey logo

fraud's Introduction

Fraud image.

Fraud

Fraud is a French java project of a Minecraft spigot plugin that allows a server owner / administrator to keep an eye on his players, see if any of them have a double-account.

  1. Installation
  2. API
  3. Contact
  4. Other Projects

Installation

  • Put the jar on the plugin directory of the server.
  • Restart the server or if you have the PlugMan (Sources) plugin on it, load the plugin with the command /plugman load Fraud.
  • Configure the plugin in the file config.yml. You can translate or just change the messages in this file.
  • Restart the server or just the plugin if you can.

API

import fr.Rgld_.Fraud.Spigot.Helpers.IPInfo;
import fr.Rgld_.Fraud.Spigot.Helpers.Utils;
import fr.Rgld_.Fraud.Spigot.api.Data;
import org.bukkit.Bukkit;

import java.net.InetSocketAddress;
import java.util.List;

public class Example {

    /**
     * Sends in the console the complete list of alts of the player given in parameters.
     *
     * @param pseudo The name in game of the player.
     */
    public void printAltsOf(String pseudo) {
        Data data = new Data();
        List<String> altsOfRgld_ = data.getAlts(pseudo);
        System.out.println("Alts of " + pseudo + ":");
        for (String alt : altsOfRgld_) {
            System.out.println("\t- " + alt);
        }
    }

    /**
     * Print in the console the geolocation of a player into the minecraft (spigot) server.
     * @param pseudo (a {@link String}) the name in game of the player that we want to obtain the geolocation.
     * @see Example#getLatitudeAndLongitudeOfAnIp(String)
     * @see Utils#getAddress(InetSocketAddress) to format the {@link InetSocketAddress} object to a string that is conforming to the database.
     */
    public void getLatitudeAndLongitudeOfAPlayer(String pseudo) {
        getLatitudeAndLongitudeOfAnIp(Utils.getAddress(Bukkit.getPlayer(pseudo).getAddress()));
    }

    /**
     * Print in the console the geolocation of an ip.
     * @param ip (a {@link String}) the ip that we want to obtain the geolocation.
     * @see Example#getLatitudeAndLongitudeOfAnIp(String)
     */
    public void getLatitudeAndLongitudeOfAnIp(String ip) {
        Data data = new Data();
        IPInfo ipInfoOfRgld_ = data.getIPInfo(ip);
        System.out.println(ip + " is located at these coordinates(lat/lon): " +
                                   ipInfoOfRgld_.getLatitude() + "/" + ipInfoOfRgld_.getLongitude()
                          );
    }
}

Contact

Discord

Emails

Twitter

Other Projects

WeatherBesac

Description

  • It's a Twitter bot that tweets at certain times of the day the current weather in the city of Besançon in France in the Doubs (a French subdivision). This tweet is accompanied by a photo taken at the time of the tweet from a known place in Besançon to be able to look at the state of the sky, for example.

Links

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.