Giter VIP home page Giter VIP logo

minopoly's Introduction

Minopoly

Codacy Badge

A Spigot-Minigame by TeamCreate.

game board of Minopoly

TODO

A TODO list

Current Progress

98.0%

minopoly's People

Contributors

codacy-badger avatar mythicaleinhorn avatar szarroug3 avatar wolfi3654 avatar xevenheaven avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

minopoly's Issues

Update DiceCommand.java Prevent user from throwing dice into the world

🆕🐥☝ First Timers Only.

This issue is reserved for people who never contributed to Open Source before. We know that the process of creating a pull request is the biggest barrier for new contributors. This issue is for you 💝

About First Timers Only.

🎃💻👕 Hacktoberfest: Trick or Treat!

If you haven’t yet, sign up for Hacktoberfest to earn an exclusive T-Shirt. Plus I’m sure we can teach you a cool trick or two in the process

🤔 What you will need to know.

Nothing. This issue is meant to welcome you to Open Source :) We are happy to walk you through the process.

📋 Step by Step

  • 🙋 Claim this issue: Comment below.

    Once claimed we add you as contributor to this repository.

  • 👌 Accept our invitation to this repository. Once accepted, assign yourself to this issue

  • 📝 Update the file src/de/wolfi/minopoly/commands/DiceCommand.java in the Minopoly repository (press the little pen Icon) and edit the line as shown below.

@@ -8,6 +8,7 @@
 import org.bukkit.event.EventHandler;
 import org.bukkit.event.block.Action;
 import org.bukkit.event.player.PlayerInteractEvent;
+import org.bukkit.event.player.PlayerDropItemEvent;
 import org.bukkit.event.player.PlayerItemHeldEvent;
 import org.bukkit.scheduler.BukkitTask;
 
@@ -44,10 +45,10 @@ public void run() {
 
 			short dur = (short) (ThreadLocalRandom.current().nextInt(6));
 			this.selected_slot = dur;
-			TitlesAPI.sendFullTitle(this.player.getHook(), 0, 10, 0, "�" + String.valueOf(11 % dur) + "W�rfel:",
-					"�" + String.valueOf(dur % 10) + (dur + 1));
+			TitlesAPI.sendFullTitle(this.player.getHook(), 0, 10, 0, "§" + String.valueOf(11 % dur) + "Würfel:",
+					"§" + String.valueOf(dur % 10) + (dur + 1));
 			this.player.getHook().getInventory().setItem(this.player.getHook().getInventory().getHeldItemSlot(),
-					new ItemBuilder(Material.INK_SACK).setName("W�rfel").setMeta((short) dur).build());
+					new ItemBuilder(Material.INK_SACK).setName("Würfel").setMeta((short) dur).build());
 			try {
 				Thread.sleep(120);
 			} catch (InterruptedException e) {
@@ -79,6 +80,12 @@ public short getValue() {
 			return selected_slot;
 		}
 	}
+	
+	@EventHandler
+	public void onDrop(PlayerDropItemEvent e){
+		DiceRunnable dice = this.getSched(e.getPlayer());
+		if(dice != null) e.setCancelled(true);
+	}
 
 	@EventHandler
 	public void onSlotChange(PlayerItemHeldEvent e){
  • 💾 Commit your changes

  • 🔀 Start a Pull Request. There are two ways how you can start a pull request:

  1. If you are familiar with the terminal or would like to learn it, here is a great tutorial on how to send a pull request using the terminal.

  2. You can edit files directly in your browser

  • 🏁 Done Ask in comments for a review :)

🤔❓ Questions

Leave a comment below!

This issue was created by First-Timers-Bot.

Update TODO.md

🆕🐥☝ First Timers Only.

This issue is reserved for people who never contributed to Open Source before. We know that the process of creating a pull request is the biggest barrier for new contributors. This issue is for you 💝

About First Timers Only.

🎃💻👕 Hacktoberfest: Trick or Treat!

If you haven’t yet, sign up for Hacktoberfest to earn an exclusive T-Shirt. Plus I’m sure we can teach you a cool trick or two in the process

🤔 What you will need to know.

Nothing. This issue is meant to welcome you to Open Source :) We are happy to walk you through the process.

📋 Step by Step

  • 🙋 Claim this issue: Comment below.

    Once claimed we add you as contributor to this repository.

  • 👌 Accept our invitation to this repository. Once accepted, assign yourself to this issue

  • 📝 Update the file TODO.md in the Minopoly repository (press the little pen Icon) and edit the line as shown below.

@@ -38,4 +38,9 @@ Make payments user controlled
 
 (Add empty streets.)
 
-Add billing into pott things
\ No newline at end of file
+Add billing into pott things
+
+
+# Things must be fixed
+
+- [ ] Add price and blocks to Fundsfield & the ability to create the funds with a price in _SetupCommand
  • 💾 Commit your changes

  • 🔀 Start a Pull Request. There are two ways how you can start a pull request:

  1. If you are familiar with the terminal or would like to learn it, here is a great tutorial on how to send a pull request using the terminal.

  2. You can edit files directly in your browser

  • 🏁 Done Ask in comments for a review :)

🤔❓ Questions

Leave a comment below!

This issue was created by First-Timers-Bot.

New Fields

Add the abitilty to create the new field types (Airport, free parking, payfields, founds)

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.